161 words

An InternalException occurs when gets an result list

#1
2016-03-01 07:49

[ObjectDB 2.6.4_04] Unexpected exception (Error 990)
Generated by Java HotSpot(TM) Client VM 1.8.0_51 (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.VAR.S(VAR.java:297)
at com.objectdb.o.VAR.R(VAR.java:259)
at com.objectdb.o.SYR.y(SYR.java:515)
at com.objectdb.o.QRC.x(QRC.java:192)
at com.objectdb.o.QRM.Vm(QRM.java:272)
at com.objectdb.o.MST.Vm(MST.java:988)
at com.objectdb.o.WRA.Vm(WRA.java:311)
at com.objectdb.o.WSM.Vm(WSM.java:115)
at com.objectdb.o.QRR.g(QRR.java:247)
at com.objectdb.o.QRR.f(QRR.java:153)
at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:716)

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #100
#2
2016-03-01 13:10

Could you please post more information, including details about the query?

The stack trace indicates an unexpected query variable.

Are there non entity variables in the query or an entity class with no instances in the database yet?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,448
#3
2016-03-01 15:27

it is actually a simple query:

select distinct m from ArchitectureImpl m

with query option: query.setHint("objectdb.result-fetch", "LAZY");

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #101
#4
2016-03-01 15:35

The exception is thrown during query compilation in checking the variable type.

Could you please check if ArchitectureImpl is defined as an entity class? Does it have instances in the database? Has it been converted to entity class from a non entity class?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,449
#5
2016-03-04 12:41

The ArchitectureImpl was not known by the ObjectDB in our OSGi environment.

The solution is we make all entities known at the ObjectDB and use the full qualified class name in all querys.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #103

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