275 words

Issue #54 - Another NPE on em.createQuery(query).getResultList()

BugVersion: 2.2.8Priority: NormalStatus: FixedReplies: 4
2011-07-02 22:02

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
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.

kaosko's picture
Joined on 2011-01-17
User Post #2
2011-07-02 22:12

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)
support's picture
Joined on 2010-05-03
User Post #405
2011-07-02 23:49

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).

kaosko's picture
Joined on 2011-01-17
User Post #3
2011-07-09 21:58

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)
support's picture
Joined on 2010-05-03
User Post #415
2011-07-10 15:04

Verified and confirming that 2.2.8_01 fixes the issue.

kaosko's picture
Joined on 2011-01-17
User Post #4

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.
Maximum file size: 32 MB