You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "fabio martelli (JIRA)" <ji...@apache.org> on 2012/12/05 16:53:18 UTC
[jira] [Created] (OPENJPA-2301) NullPointerException using Slice
with openjpa.QueryCompilationCache enabled
fabio martelli created OPENJPA-2301:
---------------------------------------
Summary: NullPointerException using Slice with openjpa.QueryCompilationCache enabled
Key: OPENJPA-2301
URL: https://issues.apache.org/jira/browse/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 http://mail-archives.apache.org/mod_mbox/openjpa-dev/201212.mbox/%3CB4582E22-403D-4F4E-BB4C-7F4DB8F1C7BF@gmail.com%3E
To reproduce the issue, please patch the class TestBasic as provided below and execute it.
--- src/test/java/org/apache/openjpa/slice/TestBasic.java (revision 1415215)
+++ src/test/java/org/apache/openjpa/slice/TestBasic.java (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,
CLEAR_TABLES);
+ 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: http://www.atlassian.com/software/jira
[jira] [Updated] (OPENJPA-2301) NullPointerException using Slice
with openjpa.QueryCompilationCache enabled
Posted by "fabio martelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
fabio martelli updated OPENJPA-2301:
------------------------------------
Description:
QueryCompilationCache with a standard slice configuration cause a NullPointerException.
For more detail, please take a look at the ML discussion thread at http://mail-archives.apache.org/mod_mbox/openjpa-dev/201212.mbox/%3CB4582E22-403D-4F4E-BB4C-7F4DB8F1C7BF@gmail.com%3E
To reproduce the issue, please patch the class TestBasic as provided below and execute it.
--- src/test/java/org/apache/openjpa/slice/TestBasic.java (revision 1415215)
+++ src/test/java/org/apache/openjpa/slice/TestBasic.java (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,
CLEAR_TABLES);
+ EntityManager em = emf.createEntityManager();
+ em.getTransaction().begin();
+ em.createQuery("DELETE FROM PObject p").executeUpdate();
+ em.getTransaction().commit();
+ em.close();
}
was:
Joining the QueryCompilationCache to a slice configuration cause a NullPointerException.
For more detail, please take a look at the ML discussion thread at http://mail-archives.apache.org/mod_mbox/openjpa-dev/201212.mbox/%3CB4582E22-403D-4F4E-BB4C-7F4DB8F1C7BF@gmail.com%3E
To reproduce the issue, please patch the class TestBasic as provided below and execute it.
--- src/test/java/org/apache/openjpa/slice/TestBasic.java (revision 1415215)
+++ src/test/java/org/apache/openjpa/slice/TestBasic.java (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,
CLEAR_TABLES);
+ EntityManager em = emf.createEntityManager();
+ em.getTransaction().begin();
+ em.createQuery("DELETE FROM PObject p").executeUpdate();
+ em.getTransaction().commit();
+ em.close();
}
> NullPointerException using Slice with openjpa.QueryCompilationCache enabled
> ---------------------------------------------------------------------------
>
> Key: OPENJPA-2301
> URL: https://issues.apache.org/jira/browse/OPENJPA-2301
> Project: OpenJPA
> Issue Type: Bug
> Components: slice
> Affects Versions: 2.2.1
> Reporter: fabio martelli
>
> QueryCompilationCache with a standard slice configuration cause a NullPointerException.
> For more detail, please take a look at the ML discussion thread at http://mail-archives.apache.org/mod_mbox/openjpa-dev/201212.mbox/%3CB4582E22-403D-4F4E-BB4C-7F4DB8F1C7BF@gmail.com%3E
> To reproduce the issue, please patch the class TestBasic as provided below and execute it.
> --- src/test/java/org/apache/openjpa/slice/TestBasic.java (revision 1415215)
> +++ src/test/java/org/apache/openjpa/slice/TestBasic.java (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,
> CLEAR_TABLES);
> + 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: http://www.atlassian.com/software/jira