131 words

Issue #185 - NullPointerException on initial database creation

BugVersion: Priority: NormalStatus: ActiveReplies: 2
#1
2013-02-17 03:29

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
java.lang.NullPointerException
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)
JohnSchneider
JohnSchneider's picture
Joined on 2013-02-17
User Post #1
#2
2013-02-17 10:11

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,429
#3
2013-02-18 21:50

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.

JohnSchneider
JohnSchneider's picture
Joined on 2013-02-17
User Post #2

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel