db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bouschen <mbo.t...@spree.de>
Subject Re: Patch to comment out interface definitions
Date Tue, 14 Mar 2006 22:52:53 GMT
Hi,

just FYI: this patch is not needed anymore.

Regards Michael

> Hi,
>
>> 1. Test status (Michelle) 1218 tests run, 25 failures 400 errors.  
>> This is a regression from last week due to the metadata interface  
>> element not being parsed correctly. Without this error, 1218 tests,  
>> 21 failures, 32 errors.
>> These numbers reflect the additional test cases completed this week.  
>> AI Michael: send a patch to jdo-dev alias that comments out the  
>> interface definitions in the metadata files.
>
>
> attached you find a patch metadata-interface.patch that comments out 
> the interface elements in the .jdo and .orm metadata of the company 
> model. W/o the patch tests using the company model run into an 
> exception (see below). The patch is only for temporary use until JPOX 
> has fixed the issue with parsing the interface elements in the JDO 
> metadata.
>
> Regards Michael
>
> 1) 
> testPositive(org.apache.jdo.tck.query.api.ChangeQuery)javax.jdo.JDOUserException: 
> One or more instances could not be made persistent
>    at 
> org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistenceManager.java:1217)

>
>    at 
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>    at 
> org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201) 
>
>    at 
> org.apache.jdo.tck.query.api.ChangeQuery.localSetUp(ChangeQuery.java:102)
>    at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:199)
>    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:215)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:92)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:129)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:104)
> NestedThrowablesStackTrace:
> javax.jdo.JDOException: Cannot read the JDO Meta-Data file "<input 
> stream> java.lang.NullPointerException"
>    at 
> org.jpox.metadata.MetaDataParser.parseMetaDataStream(MetaDataParser.java:174) 
>
>    at 
> org.jpox.metadata.MetaDataParser.parseMetaData(MetaDataParser.java:107)
>    at 
> org.jpox.metadata.MetaDataManager.parseFile(MetaDataManager.java:1131)
>    at 
> org.jpox.metadata.MetaDataManager.loadMetaDataForClass(MetaDataManager.java:1319) 
>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface(MetaDataManager.java:503)

>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClassInternal(MetaDataManager.java:464)

>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:353) 
>
>    at 
> org.jpox.AbstractPersistenceManager.hasMetaDataForPersistenceCapableClass(AbstractPersistenceManager.java:3887)

>
>    at 
> org.jpox.AbstractPersistenceManager.assertPersistenceCapable(AbstractPersistenceManager.java:3935)

>
>    at 
> org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1045)

>
>    at 
> org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1167)

>
>    at 
> org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistenceManager.java:1207)

>
>    at 
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>    at 
> org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201) 
>
>    at 
> org.apache.jdo.tck.query.api.ChangeQuery.localSetUp(ChangeQuery.java:102)
>    at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:199)
>    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:215)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:92)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:129)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:104)
> NestedThrowablesStackTrace:
> java.lang.NullPointerException
>    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
>    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
>    at 
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
>    at 
> org.jpox.metadata.MetaDataParser.parseMetaDataStream(MetaDataParser.java:162) 
>
>    at 
> org.jpox.metadata.MetaDataParser.parseMetaData(MetaDataParser.java:107)
>    at 
> org.jpox.metadata.MetaDataManager.parseFile(MetaDataManager.java:1131)
>    at 
> org.jpox.metadata.MetaDataManager.loadMetaDataForClass(MetaDataManager.java:1319) 
>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface(MetaDataManager.java:503)

>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClassInternal(MetaDataManager.java:464)

>
>    at 
> org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:353) 
>
>    at 
> org.jpox.AbstractPersistenceManager.hasMetaDataForPersistenceCapableClass(AbstractPersistenceManager.java:3887)

>
>    at 
> org.jpox.AbstractPersistenceManager.assertPersistenceCapable(AbstractPersistenceManager.java:3935)

>
>    at 
> org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1045)

>
>    at 
> org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1167)

>
>    at 
> org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistenceManager.java:1207)

>
>    at 
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>    at 
> org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201) 
>
>    at 
> org.apache.jdo.tck.query.api.ChangeQuery.localSetUp(ChangeQuery.java:102)
>    at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:199)
>    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:215)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:92)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:129)
>    at 
> org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:104)
>
>
>
>------------------------------------------------------------------------
>
>Index: src/jdo/datastoreidentity/org/apache/jdo/tck/pc/company/package.jdo
>===================================================================
>--- src/jdo/datastoreidentity/org/apache/jdo/tck/pc/company/package.jdo	(Revision 385042)
>+++ src/jdo/datastoreidentity/org/apache/jdo/tck/pc/company/package.jdo	(Arbeitskopie)
>@@ -101,6 +101,7 @@
>                 <collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
>             </field>
>         </class>
>+	<!--
>         <interface name="IAddress" embedded-only="true" requires-extent="false"/>
> 
>         <interface name="ICompany"
>@@ -208,5 +209,6 @@
>                 <collection element-type="org.apache.jdo.tck.pc.company.IEmployee"/>
>             </property>
>         </interface>
>+	-->
>     </package>
> </jdo>
>Index: src/jdo/applicationidentity/org/apache/jdo/tck/pc/company/package.jdo
>===================================================================
>--- src/jdo/applicationidentity/org/apache/jdo/tck/pc/company/package.jdo	(Revision 385042)
>+++ src/jdo/applicationidentity/org/apache/jdo/tck/pc/company/package.jdo	(Arbeitskopie)
>@@ -128,6 +128,7 @@
>             </field>
>         </class>
> 
>+	<!--
>         <interface name="IAddress" embedded-only="true" requires-extent="false"/>
> 
>         <interface name="ICompany"
>@@ -235,5 +236,6 @@
>                 <collection element-type="org.apache.jdo.tck.pc.company.IEmployee"/>
>             </property>
>         </interface>
>+	-->
>     </package>
> </jdo>
>Index: src/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-standard.orm
>===================================================================
>--- src/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-standard.orm	(Revision
385042)
>+++ src/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-standard.orm	(Arbeitskopie)
>@@ -166,6 +166,7 @@
>             </field>
>         </class>
> 
>+	<!--
>         <interface name="ICompany" table="companies">
>             <datastore-identity strategy="identity" column="DATASTORE_IDENTITY"/>
>             <property name="companyid" column="ID"/>
>@@ -324,6 +325,6 @@
>                 <element column="MEMBER"/>
>             </property>
>         </interface>
>-
>+	-->
>     </package>
> </orm>
>Index: src/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-standard.orm
>===================================================================
>--- src/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-standard.orm	(Revision
385042)
>+++ src/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-standard.orm	(Arbeitskopie)
>@@ -163,6 +163,7 @@
>             </field>
>         </class>
> 
>+	<!--
>         <interface name="ICompany" table="companies">
>             <property name="companyid" column="ID"/>
>             <property name="name" column="NAME">
>@@ -316,5 +317,6 @@
>                 <element column="MEMBER"/>
>             </property>
>         </interface>
>+	-->
>     </package>
> </orm>
>  
>


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			


Mime
View raw message