ObjectDB ObjectDB

NPE when doing a find()

#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 http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.NullPointerException: null
java.lang.NullPointerException
at com.objectdb.o.HTB.n(HTB.java:326)
at com.objectdb.o.CCH.F(CCH.java:224)
at com.objectdb.o.DCE.V(DCE.java:778)
at com.objectdb.o.LDR.G(LDR.java:410)
at com.objectdb.o.LDR.i(LDR.java:620)
at com.objectdb.o.CST.aa(CST.java:464)
at com.objectdb.o.CST.UO(CST.java:383)
at com.objectdb.o.LDR.F(LDR.java:330)
at com.objectdb.o.LDR.E(LDR.java:269)
at com.objectdb.o.LDR.B(LDR.java:196)
at com.objectdb.o.OBC.aK(OBC.java:1005)
at com.objectdb.o.OBC.aI(OBC.java:912)
at com.objectdb.jpa.EMImpl.find(EMImpl.java:534)
at com.objectdb.jpa.EMImpl.find(EMImpl.java:458)

This used to work in previous ObjectDB version.

edit
delete
#2

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
edit
delete

Reply

To post on this website please sign in.