Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-517

NPE on enhancement of classes with persistent properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 maintenance release 1 (2.1)
    • tck
    • None

    Description

      To reproduce, edit project.propeties, go to the end of the file, and edit out the comment and blank lines so that the classes in the companyAnnotatedPC package are included in the argument list to the enhancer.

      11:39:16,031 (main) ERROR [JPOX.Enhancer] - An error was encountered reading the specified input files. Please consult the log for details. The following may help : Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details
      Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details
      org.jpox.exceptions.JPOXUserException: Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details
      at org.jpox.metadata.MetaDataManager.initialise(MetaDataManager.java:299)
      at org.jpox.enhancer.JPOXEnhancer.getFileMetaDataForInput(JPOXEnhancer.java:724)
      at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:533)
      Caused by: java.lang.NullPointerException
      at org.jpox.metadata.annotations.JDOAnnotationReader.processFieldAnnotations(JDOAnnotationReader.java:1594)
      at org.jpox.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java:211)
      at org.jpox.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java:133)
      at org.jpox.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java:1729)
      at org.jpox.metadata.MetaDataManager.initialise(MetaDataManager.java:265)
      ... 2 more
      Nested Throwables StackTrace:
      java.lang.NullPointerException
      at org.jpox.metadata.annotations.JDOAnnotationReader.processFieldAnnotations(JDOAnnotationReader.java:1594)
      at org.jpox.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java:211)
      at org.jpox.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java:133)
      at org.jpox.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java:1729)
      at org.jpox.metadata.MetaDataManager.initialise(MetaDataManager.java:265)
      at org.jpox.enhancer.JPOXEnhancer.getFileMetaDataForInput(JPOXEnhancer.java:724)
      at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:533)
      java.lang.NullPointerException
      at org.jpox.metadata.annotations.JDOAnnotationReader.processFieldAnnotations(JDOAnnotationReader.java:1594)
      at org.jpox.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java:211)
      at org.jpox.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java:133)
      at org.jpox.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java:1729)
      at org.jpox.metadata.MetaDataManager.initialise(MetaDataManager.java:265)
      at org.jpox.enhancer.JPOXEnhancer.getFileMetaDataForInput(JPOXEnhancer.java:724)
      at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:533)

      Attachments

        Activity

          People

            andyj Andy Jefferson
            mcaisse Michelle Caisse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: