When stopping my JEE 6 Web Profile application in Glassfish 3.1.1, I sometimes get this exception, yielding in not merging athene.odb and athene.odb$. A bug in objectdb?
 bjjl@ps2:~$ ls -l /var/db/athene/
 total 122080
 -rw-r--r-- 1 bjjl webservd   2621440 2012-05-24 16:40 athene.odb
 -rw-r--r-- 1 bjjl webservd 122265952 2012-05-24 16:40 athene.odb$
 bjjl@ps2:~$  
 [#|2012-05-24T14:40:38.313+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=24;_ThreadName=Thread-2;|Cannot stop module
 web
 [ObjectDB 2.3.7_25] javax.persistence.PersistenceException
 Exceptions during EntityManagerFactory close (error 512)
         at net.pocketservices.athene.lib.EntityManagerFilter.destroy(EntityManagerFilter.java:52)
         at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:319)
         at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4717)
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5564)
         at com.sun.enterprise.web.WebModule.stop(WebModule.java:527)
         at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1049)  
[...]
 Caused by: javax.jdo.JDONullIdentityException: The identity must not be null.
         at javax.jdo.identity.SingleFieldIdentity.assertKeyNotNull(SingleFieldIdentity.java:92)
         at javax.jdo.identity.ObjectIdentity.<init>(ObjectIdentity.java:60)
         at com.objectdb.o.UTY.aK(UTY.java:1410)
         at com.objectdb.spi.DetachedTracker.<init>(DetachedTracker.java:82)
         at com.objectdb.o.ENT.getDetachTracker(ENT.java:939)
         at com.objectdb.o.ENT.w(ENT.java:329)
         at com.objectdb.o.STA.ae(STA.java:819)
         at com.objectdb.o.STM.D(STM.java:371)
         at com.objectdb.o.OBC.ae(OBC.java:222)
         at com.objectdb.o.OBM.close(OBM.java:184)
         at com.objectdb.o.OMF.close(OMF.java:867)
         ... 67 more  
