Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 6597 invoked from network); 14 Aug 2007 19:29:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 19:29:51 -0000 Received: (qmail 57164 invoked by uid 500); 14 Aug 2007 19:29:49 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 57148 invoked by uid 99); 14 Aug 2007 19:29:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 12:29:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 19:29:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A485A7141F5 for ; Tue, 14 Aug 2007 12:29:30 -0700 (PDT) Message-ID: <3436667.1187119770669.JavaMail.jira@brutus> Date: Tue, 14 Aug 2007 12:29:30 -0700 (PDT) From: "Michelle Caisse (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-517) NPE on enhancement of classes with persistent properties In-Reply-To: <15466403.1187117250954.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#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 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) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.