openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabio martelli (JIRA)" <>
Subject [jira] [Created] (OPENJPA-2301) NullPointerException using Slice with openjpa.QueryCompilationCache enabled
Date Wed, 05 Dec 2012 15:53:18 GMT
fabio martelli created OPENJPA-2301:

             Summary: NullPointerException using Slice with openjpa.QueryCompilationCache
                 Key: OPENJPA-2301
             Project: OpenJPA
          Issue Type: Bug
          Components: slice
    Affects Versions: 2.2.1
            Reporter: fabio martelli

Joining the QueryCompilationCache to a slice configuration cause a NullPointerException.

For more detail, please take a look at the ML discussion thread at

To reproduce the issue, please patch the class TestBasic as provided below and execute it.

--- src/test/java/org/apache/openjpa/slice/	(revision 1415215)
+++ src/test/java/org/apache/openjpa/slice/	(working copy)
@@ -46,8 +46,14 @@

    public void setUp() throws Exception {
-        super.setUp(PObject.class, Person.class, Address.class, Country.class, 
+        super.setUp("openjpa.QueryCompilationCache", "true",
+            PObject.class, Person.class, Address.class, Country.class, 
+        EntityManager em = emf.createEntityManager();
+        em.getTransaction().begin();
+        em.createQuery("DELETE FROM PObject p").executeUpdate();
+        em.getTransaction().commit();
+        em.close();

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message