ObjectDB ObjectDB

Issue #1045: NullPointerException on initial database creation

Type: Bug ReoprtPriority: NormalStatus: ActiveReplies: 2

I'm getting the following exception on initial creation of a database.  There's no indication as to what's wrong and there's nothing in the log.


com.objectdb.o.InternalException: java.lang.NullPointerException: null
at com.objectdb.o.SCO.b(SCO.java:209)
at com.objectdb.o.NTS.z(NTS.java:286)
at com.objectdb.o.CLS.S(CLS.java:335)
at com.objectdb.o.CLS.Q(CLS.java:277)
at com.objectdb.o.CLS.O(CLS.java:194)
at com.objectdb.o.CST.Uz(CST.java:175)
at com.objectdb.o.CSF.UM(CSF.java:112)
at com.objectdb.o.OMF.aq(OMF.java:933)
at com.objectdb.o.OMF.close(OMF.java:876)
at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:417)
at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:408)
at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

According to the exception stack trace, there is an unexpected problem during closing of an EntityManager (apparently automatically by GlassFish).

Could you provide a test case that would demonstrate the exception?

ObjectDB Support

I'm having trouble creating a simple test case that reproduces it.  At this
point, I think it may be related to having a class annotated with @Startup
or @ApplicationScoped that references an entity class that hasn't been
created in the DB yet.  I will try to make a test project that reliably
reproduces the issue within a couple days.



To post on this website please sign in.