Apache JDO Project - [jira] Commented: (JDO-517) NPE on enhancement of classes with

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2007 > [jira] Commented: (JDO-517) NPE on enhancement of classes with





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (JDO-517) NPE on enhancement of classes with
Michelle Caisse (JIRA)

2007-08-14, 7:11 pm


[ https://issues.apache.org/jira/brow...action_12519751 ]

Michelle Caisse commented on JDO-517:
-------------------------------------

Not a direct response to your question, but initially the classes only had annotations on properties and did not have @NotPersistent on fields. Enhancement still failed in that case, though possibly the failure mode is different. Earlier, the enhancer was
complaining about unannotated get* methods that were not properties, e.g. Person.getPhoneNumber().


> NPE on enhancement of classes with persistent properties
> --------------------------------------------------------
>
> Key: JDO-517
> URL: https://issues.apache.org/jira/browse/JDO-517
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Affects Versions: JDO 2 maintenance release 1
> Reporter: Michelle Caisse
> Assignee: Andy Jefferson
>
> 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 n

ested 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(JDOAnnotationRea
der.java:1594)
> at org.jpox.metadata.annotations.AbstractAnnotationReader. getMetaDataForClass(AbstractAnnotationRe
ader.java:211)
> at org.jpox.metadata.annotations.AnnotationManagerImpl. getMetaDataForClass(AnnotationManagerImp
l.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(JDOAnnotationRea
der.java:1594)
> at org.jpox.metadata.annotations.AbstractAnnotationReader. getMetaDataForClass(AbstractAnnotationRe
ader.java:211)
> at org.jpox.metadata.annotations.AnnotationManagerImpl. getMetaDataForClass(AnnotationManagerImp
l.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(JDOAnnotationRea
der.java:1594)
> at org.jpox.metadata.annotations.AbstractAnnotationReader. getMetaDataForClass(AbstractAnnotationRe
ader.java:211)
> at org.jpox.metadata.annotations.AnnotationManagerImpl. getMetaDataForClass(AnnotationManagerImp
l.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)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com