openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <>
Subject [jira] [Created] (OPENJPA-2502) NPE in QueryKey.createKey using criteria with QueryCache enabled
Date Sat, 10 May 2014 21:56:51 GMT
Albert Lee created OPENJPA-2502:

             Summary: NPE in QueryKey.createKey using criteria with QueryCache enabled
                 Key: OPENJPA-2502
             Project: OpenJPA
          Issue Type: Bug
          Components: criteria, datacache
    Affects Versions: 2.2.2, 2.2.1
            Reporter: Albert Lee

Running an example in the spec using Criteria API with "left join fetch" AND query cache enabled
yield the following NPE exception. See the testcase to reproduce the problem and the spec
section where the example comes from:

<openjpa- nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
Failed to execute query "null". Check the query syntax for correctness. See nested exception
for details.
	at org.apache.openjpa.kernel.QueryImpl.execute(
	at org.apache.openjpa.kernel.QueryImpl.execute(
	at org.apache.openjpa.kernel.DelegatingQuery.execute(
	at org.apache.openjpa.persistence.QueryImpl.execute(
	at org.apache.openjpa.persistence.QueryImpl.getResultList(
	at test.TestNPE.test(
Caused by: java.lang.NullPointerException
	at org.apache.openjpa.datacache.QueryKey.createKey(
	at org.apache.openjpa.datacache.QueryKey.newInstance(
	at org.apache.openjpa.datacache.QueryCacheStoreQuery$QueryCacheExecutor.executeQuery(
	at org.apache.openjpa.kernel.QueryImpl.execute(
	at org.apache.openjpa.kernel.QueryImpl.execute(
	... 33 more

This message was sent by Atlassian JIRA

View raw message