77 words

null pointer exception in objectdb-2.4.4_06

#1
2012-12-07 14:02

I have the following stack trace.  Is this a null ptr in our code or in the object db code?

Failed to commit transaction:  (error 613)
at com.objectdb.jpa.EMImpl.commit(EMImpl.java:279)
[Removed application frames]
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.objectdb.o.RTM.x(RTM.java:85)
at com.objectdb.o.OBC.aL(OBC.java:904)
at com.objectdb.o.OBM.bA(OBM.java:492)
at com.objectdb.o.OBM.bz(OBM.java:371)
at com.objectdb.o.EPR.Un(EPR.java:81)
at com.objectdb.o.MPT.visitRefs(MPT.java:174)
at com.objectdb.o.TVS.j(TVS.java:169)
at com.objectdb.o.TVS.cascade(TVS.java:156)
at com.objectdb.o.STA.Q(STA.java:476)
at com.objectdb.o.STM.E(STM.java:410)
at com.objectdb.o.OBM.bK(OBM.java:902)
at com.objectdb.jdo.PMImpl.bK(PMImpl.java:2187)
at com.objectdb.o.OBM.bJ(OBM.java:818)
at com.objectdb.o.OBM.bH(OBM.java:733)
at com.objectdb.jpa.EMImpl.commit(EMImpl.java:276)
CalculationServices
CalculationServices's picture
Joined on 2012-12-07
User Post #1
#2
2012-12-07 14:08

The stack trace indicates an attempt to persist (indirectly via cascading) an object with a null primary key.

Build 2.4.4_17 may provide a better error message in this case.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,359

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