Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2301

NullPointerException using Slice with openjpa.QueryCompilationCache enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.1
    • None
    • slice
    • None

    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(); }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fmartelli Fabio Martelli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: