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

NPE when no metadata is defined for a persistent class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: kernel
    • Labels:
      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 Richards
        2. OPENJPA-819.patch
          6 kB
          Dianne Richards

          Activity

            People

            • Assignee:
              dianner Dianne Richards
              Reporter:
              dianner Dianne Richards
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: