Fast Object Database for Java - with JPA/JDO support

An InternalException occurs when gets an result list


[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
com.objectdb.o.InternalException: java.lang.NullPointerException: null
at com.objectdb.o.VAR.S(
at com.objectdb.o.VAR.R(
at com.objectdb.o.SYR.y(
at com.objectdb.o.QRC.x(
at com.objectdb.o.QRM.Vm(
at com.objectdb.o.MST.Vm(
at com.objectdb.o.WRA.Vm(
at com.objectdb.o.WSM.Vm(
at com.objectdb.o.QRR.g(
at com.objectdb.o.QRR.f(
at com.objectdb.jpa.JpaQuery.getResultList(


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)

it is actually a simple query:

select distinct m from ArchitectureImpl m

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


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)

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.

Post Reply