130 words

Issue #183 - Named Query Exception

BugVersion: 2.4.6Priority: NormalStatus: FixedReplies: 3
#1
2013-02-06 12:51
[ObjectDB 2.4.6_06] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) Client 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.LFL.X(LFL.java:1154)
at com.objectdb.o.LFL.P(LFL.java:934)
at com.objectdb.o.FIW.af(FIW.java:94)
at com.objectdb.o.FIW.ad(FIW.java:55)
at com.objectdb.o.SSS.aj(SSS.java:907)
at com.objectdb.o.SSS.ag(SSS.java:731)
at com.objectdb.o.SSS.af(SSS.java:707)
at com.objectdb.o.MST.UC(MST.java:1116)
at com.objectdb.o.WRA.UC(WRA.java:200)
at com.objectdb.o.TYS.x(TYS.java:748)
at com.objectdb.o.TYS.v(TYS.java:572)
at com.objectdb.o.TYM.ae(TYM.java:542)
at com.objectdb.o.TYM.ac(TYM.java:478)
at com.objectdb.o.TYM.ao(TYM.java:799)
at com.objectdb.jpa.EMImpl.loadResultType(EMImpl.java:920)
at com.objectdb.jpa.EMImpl.createNamedQuery(EMImpl.java:850)
at com.xxx.objectdb.ObjectDBRulesEngineDAOImpl.createNamedQuery(ObjectDBRulesEngineDAOImpl.java:258)
at com.xxx.RulesEngineService.createOrFetchModifierMap(RulesEngineService.java:355)
at com.xxx.RulesEngineService.initEngine(RulesEngineService.java:103)
at com.xxx.RulesEngineService.startDbService(RulesEngineService.java:2897)
at com.xxx.tests.TestTopologyValidation.getAgent(TestTopologyValidation.java:154)
at com.xxx.tests.TestTopologyValidation.testExistingSCLModel(TestTopologyValidation.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
PG
PG's picture
Joined on 2012-06-28
User Post #3
#2
2013-02-06 14:17

Thank you for this report.

This could indicate an attempt to create a query using a closed EntityManager. If this is the case, a better error message should be produced.

Please make sure that you are using an open EntityManager.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,415
#3
2013-02-07 08:04

Thanks, that was the problem

PG
PG's picture
Joined on 2012-06-28
User Post #4
#4
2013-02-09 23:55

The error message was fixed in build 2.4.6_10. Thank you for this report.

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

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