NPE when doing a find()

Type: BugVersion: 1.4.0Priority: NormalStatus: FixedReplies: 1

I added a simple User entity during Tomcat startup:

class User {

 @Id @GeneratedValue
private long id;

@Basic(optional = false)
private String firstName;
private String middleName;
@Basic(optional = false)
private String lastName;


Everything works fine until I restart the server, which does a em.find(User.class, 1).  Then this happens:

[ObjectDB 2.2.1_02] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) Client VM 1.6.0_21 (on Windows 7 6.1).
Please report this error on
com.objectdb.o.InternalException: java.lang.NullPointerException: null
at com.objectdb.o.HTB.n(
at com.objectdb.o.CCH.F(
at com.objectdb.o.DCE.V(
at com.objectdb.o.LDR.G(
at com.objectdb.o.LDR.i(
at com.objectdb.o.CST.aa(
at com.objectdb.o.CST.UO(
at com.objectdb.o.LDR.F(
at com.objectdb.o.LDR.E(
at com.objectdb.o.LDR.B(
at com.objectdb.o.OBC.aK(
at com.objectdb.o.OBC.aI(
at com.objectdb.jpa.EMImpl.find(
at com.objectdb.jpa.EMImpl.find(

This used to work in previous ObjectDB version.


It seems that this is a bug that was added in build 2.2.1_02 and was fixed in build 2.2.1_03.

Please try the last build (2.2.1_03).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login