Home » Support » Issue Tracking » Another NPE on em.createQuery(query).getResultList()

Another NPE on em.createQuery(query).getResultList()

Type: BugVersion: 2.2.8Priority: NormalStatus: FixedReplies: 4
#1

Related to #51 that was tested against 2.2.7 and marked as fixed in 2.2.8.

Running the same test case against 2.2.8 now results in:

[ObjectDB 2.2.8] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_25 (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.EXR$e.c(EXR.java:190)
at com.objectdb.o.VAR.ao(VAR.java:775)
at com.objectdb.o.VAR.an(VAR.java:718)
at com.objectdb.o.BCN.z(BCN.java:282)
at com.objectdb.o.BCN.j(BCN.java:251)
at com.objectdb.o.PBI.C(PBI.java:146)
at com.objectdb.o.PBI.q(PBI.java:115)
at com.objectdb.o.OBI.U6(OBI.java:236)
at com.objectdb.o.BQI.Vf(BQI.java:140)
at com.objectdb.o.PRG.ad(PRG.java:698)
at com.objectdb.o.PRG.ab(PRG.java:627)
at com.objectdb.o.QRM.US(QRM.java:259)
at com.objectdb.o.MST.US(MST.java:884)
at com.objectdb.o.WRA.US(WRA.java:286)
at com.objectdb.o.WSM.US(WSM.java:113)
at com.objectdb.o.QRR.g(QRR.java:225)
at com.objectdb.o.QRR.b(QRR.java:144)
at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627)
at org.tynamo.seedentity.jpa.services.SeedEntityImpl.<init>(SeedEntityImpl.java:56)
at org.tynamo.seedentity.jpa.services.SeedEntityImplTest.seedEntities(SeedEntityImplTest.java:65)

Source available at http://svn.codehaus.org/tynamo/trunk/tapestry-jpa-seedentity. The test runs correctly with EclipseLink, Hibernate. I can post the entities used in the test if you can't deduce the exact failure from this.

#2

This is another unrelated NPE and this time I will need more than the stack trace.

I am checking out the test. How exactly should I run it?

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

Very well. It's an svn repository, you can check out http://svn.codehaus.org/tynamo/trunk/tapestry-jpa-seedentity/. It's a Maven build, if you have Maven installed, you can just run "mvn install" and it'll run the SeedEntityImplTest for you. You can also import the project into your IDE workspace (for eclipse, you could run mvn eclipse:eclipse to generate the eclipse project configuration files, or you could m2eclipse eclipse plugin). SeedEntityImplTest is a testng test. I temporarily committed changes to configure the project ready for object (if you run with Maven, it'll complain about missing objectdb dependency and give you a command to install objectdb.jar into your local repository).

#4

It seems as a bug in using non enhanced non managed entity objects as query parameters (or in criteria queries). Please try build 2.2.8_01 that should fix it. If it doesn't work try using enhanced classes (you should use enhanced classes anyway to improve performance).

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

Verified and confirming that 2.2.8_01 fixes the issue.


Post Reply

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