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

NPE when no metadata is defined for a persistent class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M2
    • kernel
    • None

    Description

      The persistent class was specified in the persistence.xml under <class>, but persistence metadata was not specified for the class, either through annotation or the orm.xml. A NPE was thrown. We need a better message.

      This issue was reported in the user forum by post http://n2.nabble.com/NullPointerException-when-calling-createEntityManager-on--EntityManagerFactory-td1621881.html

      Attachments

        1. OPENJPA-819.patch
          7 kB
          Dianne E. Richards
        2. OPENJPA-819.patch
          6 kB
          Dianne E. Richards

        Activity

          People

            dianner Dianne E. Richards
            dianner Dianne E. Richards
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: