Exception on comparing array fields against parameters in queries

Type: BugVersion: 2.7.4_04Priority: NormalStatus: FixedReplies: 1
#1

Found this exception when running unit test:

 

com.objectdb.o.InternalException: java.lang.NullPointerException: null
java.lang.NullPointerException
    at com.objectdb.o.EXR$b.a(EXR.java:192)
    at com.objectdb.o.VAR.m(VAR.java:889)
    at com.objectdb.o.VAR.l(VAR.java:832)
    at com.objectdb.o.BCN.a(BCN.java:306)
    at com.objectdb.o.BCN.ZU(BCN.java:265)
    at com.objectdb.o.PBI.i(PBI.java:148)
    at com.objectdb.o.PBI.g(PBI.java:117)
    at com.objectdb.o.OBI.Z6(OBI.java:245)
    at com.objectdb.o.BQI.YA(BQI.java:153)
    at com.objectdb.o.PRG.e(PRG.java:742)
    at com.objectdb.o.PRG.h(PRG.java:705)
    at com.objectdb.o.PRG.g(PRG.java:557)
    at com.objectdb.o.QRM.ZH(QRM.java:287)
    at com.objectdb.o.MST.ZH(MST.java:1003)
    at com.objectdb.o.WRA.ZH(WRA.java:313)
    at com.objectdb.o.WSM.ZH(WSM.java:117)
    at com.objectdb.o.QRR.k(QRR.java:249)
    at com.objectdb.o.QRR.i(QRR.java:155)
    at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:755)
    at id.co.ecoin.test.objectdb.OdbByteArrayIndexTest$OdbByteArray.find(OdbByteArrayIndexTest.java:88)
    at id.co.ecoin.test.objectdb.OdbByteArrayIndexTest.objectDbBasic2(OdbByteArrayIndexTest.java:58)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    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.runners.ParentRunner.run(ParentRunner.java:300)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


Process finished with exit code -1

 

 

#2

Thank you for this report.

Please try build 2.7.4_05 that should fix this exception.

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

Post Reply

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