Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 12793 invoked from network); 15 Feb 2007 18:29:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 18:29:54 -0000 Received: (qmail 68668 invoked by uid 500); 15 Feb 2007 18:30:02 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 68647 invoked by uid 500); 15 Feb 2007 18:30:02 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 68637 invoked by uid 99); 15 Feb 2007 18:30:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 10:30:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@bea.com designates 66.248.192.22 as permitted sender) Received: from [66.248.192.22] (HELO usremg02.bea.com) (66.248.192.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 10:29:51 -0800 Received: from usremr02.bea.com (mailrelay.bea.com [10.160.29.92]) by usremg02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1FITTSj001544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 15 Feb 2007 10:29:29 -0800 Received: from repbex02.amer.bea.com (repbex02.bea.com [10.160.26.99]) by usremr02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1FITRcR013766 for ; Thu, 15 Feb 2007 10:29:27 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Strange, intermittent problem running the new models.company tests Date: Thu, 15 Feb 2007 10:29:29 -0800 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD6303381A6E@repbex02.amer.bea.com> In-Reply-To: <89c0c52c0702150929q4649f03ag2e6c1ac3175dd0e6@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Strange, intermittent problem running the new models.company tests Thread-Index: AcdRJvnBwDZaCnj8RReDU/G+KVH2JgABmMPQ References: <89c0c52c0702101821w667c002ci466b3ac58ba15a63@mail.gmail.com> <89c0c52c0702102008n5e2aad0er2532f6dfc6a91b2d@mail.gmail.com> <073534C2-BA61-4AAB-B4F1-55B1C78E3A58@SUN.com> <03994FBF-3FD4-4EE5-8CEE-DEE10AAA1421@apache.org> <89c0c52c0702120433t20218420rbd4c9dfe6f9ceaa4@mail.gmail.com> <93A89085-86E1-4064-9524-E521B44D814F@apache.org> <89c0c52c0702121025s82108e4rb33b4be824b43952@mail.gmail.com> <89c0c52c0702150929q4649f03ag2e6c1ac3175dd0e6@mail.gmail.com> From: "Patrick Linskey" To: X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.2.131432 X-Virus-Checked: Checked by ClamAV on apache.org I get different errors with the models.company tests (NPEs from Derby) when running 'mvn package'. Let's turn this question around. Does 'mvn clean package' work for anyone? -Patrick --=20 Patrick Linskey BEA Systems, Inc.=20 _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.=20 > -----Original Message----- > From: Kevin Sutter [mailto:kwsutter@gmail.com]=20 > Sent: Thursday, February 15, 2007 9:30 AM > To: open-jpa-dev@incubator.apache.org > Subject: Re: Strange, intermittent problem running the new=20 > models.company tests >=20 > I am still experiencing the same problem. Am I the only one=20 > having problems > building and executing the tests? >=20 > I have a workaround that hasn't failed me yet... I separate=20 > the building > from the testing. >=20 > From the top-level openjpa directory... >=20 > > mvn clean && mvn install -Dtest=3Dfalse > > mvn test >=20 > But, more often than not, if I don't include the=20 > "-Dtest=3Dfalse" stanza, the > tests will fail as described earlier in this thread. >=20 > If nobody else is experiencing this, maybe it's a JDK thing=20 > again. I could > try to reproduce with the Sun JDK. Any other thoughts? >=20 > Kevin >=20 > On 2/12/07, Kevin Sutter wrote: > > > > That clarification works for me... ;-) > > > > On 2/12/07, Marc Prud'hommeaux wrote: > > > > > > Kevin- > > > > > > It could, but it would just be a spec compliance. OpenJPA=20 > does allow > > > you to have final classes. The spec just prohibits it=20 > because one of > > > the ways to implement support for property access is to=20 > dynamically > > > generate a subclass to the entity (which isn't possible=20 > if the entity > > > is final). > > > > > > > > > > > > On Feb 12, 2007, at 4:33 AM, Kevin Sutter wrote: > > > > > > > Marc (and others), > > > > Shouldn't OpenJPA be detecting these final classes and=20 > issuing an > > > > error > > > > message? > > > > > > > > Kevin > > > > > > > > On 2/12/07, Marc Prud'hommeaux < mprudhom@apache.org> wrote: > > > >> > > > >> Craig- > > > >> > > > >> You're right that the classes shouldn't be final, but=20 > I don't think > > > >> that's the cause of the problem. > > > >> > > > >> I've committed a fix to the final class issue, though.=20 > Thanks for > > > >> pointing it out. > > > >> > > > >> > > > >> > > > >> On Feb 10, 2007, at 10:07 PM, Craig L Russell wrote: > > > >> > > > >> > Hi Kevin, > > > >> > > > > >> > I don't know if it's relevant, but persistent=20 > classes must not be > > > >> > final. It seems that the entities in the=20 > model.company packages are > > > > > > >> > (all) final, which is wrong. From spec 2.1, "The=20 > entity class must > > > >> > not be final. No methods or persistent instance=20 > variables of the > > > >> > entity class may be final. " > > > >> > > > > >> > The relevant part of the stack trace appears to be: > > > >> >> Caused by: java.lang.NoSuchMethodException:=20 > =3DClass.create > > > >> >> (Class); > > > >> >> at java.beans.Statement.invoke(Statement.java:269) > > > >> >> at .(Unknown Source) > > > >> >> at=20 > com.sun.beans.ObjectHandler.eval(ObjectHandler.java:148) > > > >> >> at com.sun.beans.ObjectHandler.startElement > > > >> >> (ObjectHandler.java:250) > > > >> >> at=20 > org.apache.xerces.parsers.AbstractSAXParser.startElement > > > >> >> (Unknown > > > >> >> Source) > > > >> >> at=20 > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement > > > >> >> (Unknown > > > >> > > > > >> > which sounds like an issue with the xerces parser.=20 > Don't you hate > > > >> > exceptions from parsers rather than error messages? > > > >> > > > > >> > Craig > > > >> > > > > >> > On Feb 10, 2007, at 8:08 PM, Kevin Sutter wrote: > > > >> > > > > >> >> Marc, > > > >> >> It took a while to reproduce, but I finally got the=20 > following... > > > >> >> Does this > > > >> >> help? Thanks for your help! > > > >> >> > > > >> >> Kevin > > > >> >> > > > >> >> Running > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.TestProp > > > >> >> ertyCompanyModel > > > >> >> 0 test INFO [main] openjpa.Runtime - Starting=20 > OpenJPA 0.0.0 > > > >> >> 0 test INFO [main] openjpa.jdbc.JDBC - OpenJPA will now > > > >> >> connect to the > > > >> >> database to attempt to determine what type of=20 > database dictionary > > > >> >> to use. > > > >> >> To prevent this connection in the future, set your > > > >> >> openjpa.jdbc.DBDictionaryconfiguration property to=20 > the appropriate > > > >> >> value for your database (see the > > > >> >> documentation foravailable values). > > > >> >> 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary > > > >> class " > > > >> >> org.apache.openjpa.jdbc.sql.DerbyDictionary " (Apache Derby > > > >> 10.2.2.0 - > > > >> >> (485682) ,Apache Derby > > > >> >> Embedded JDBC Driver 10.2.2.0 - (485682)). > > > >> >> 10 test INFO [main] openjpa.MetaData - Found 10=20 > classes with > > > >> >> metadata in > > > >> >> 0 milliseconds. > > > >> >> 20 test INFO [main] openjpa.MetaData - Found 10=20 > classes with > > > >> >> metadata in > > > >> >> 10 milliseconds. > > > >> >> 20 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Product" > > > >> >> . > > > >> >> 20 test INFO [main] openjpa.MetaData - Parsing package " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Product" > > > > > > >> >> . > > > >> >> 30 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Company" > > > >> >> . > > > >> >> 30 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Address" > > > >> >> . > > > >> >> 40 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Employee > > > >> >> ". > > > >> >> 40 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Person". > > > >> >> 50 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.FullTime > > > >> >> Employee > > > >> >> ". > > > >> >> 50 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.LineItem > > > >> >> ". > > > >> >> 60 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.ProductO > > > >> >> rder". > > > >> >> 60 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Customer > > > >> >> ". > > > >> >> 70 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.PartTime > > > >> >> Employee > > > >> >> ". > > > >> >> 70 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_Address". > > > >> >> 80 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_Company". > > > >> >> 80 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_LineItem". > > > >> >> 80 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_Person". > > > >> >> 80 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_Product". > > > >> >> 110 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_ProductOrder". > > > >> >> 120 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name=20 > "PRP_ProductOrder_PRP_LineItem". > > > >> >> 120 test INFO [main] openjpa.jdbc.Schema - Reading table > > > >> >> information for > > > >> >> schema name "null", table name "PRP_Product_PRP_Company". > > > >> >> 140 test INFO [main] openjpa.jdbc.Schema -=20 > Reading sequence > > > >> >> information > > > >> >> for schema "null", sequence name "null". > > > >> >> 3856 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Company" > > > >> >> . > > > >> >> 3856 test INFO [main] openjpa.MetaData -=20 > Parsing package " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Company" > > > >> >> . > > > >> >> 3866 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Address" > > > >> >> . > > > >> >> 3866 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Employee > > > >> >> ". > > > >> >> 3866 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Person". > > > > > > >> >> 3876 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Product" > > > >> >> . > > > >> >> 3876 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.FullTime > > > >> >> Employee > > > >> >> ". > > > >> >> 3936 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.ProductO > > > >> >> rder". > > > >> >> 3966 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.Customer > > > >> >> ". > > > >> >> 3976 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.LineItem > > > >> >> ". > > > >> >> 4026 test INFO [main] openjpa.MetaData - Parsing class " > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.PartTime > > > >> >> Employee > > > >> >> ". > > > >> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0,=20 > Time elapsed: > > > >> >> 4.336 sec > > > >> >> <<< FAILURE! > > > >> >> testBasicQueries( > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.TestProp > > > >> >> ertyCompanyModel) > > > >> >> Time elapsed: 4.326 sec <<< ERROR! > > > >> >> java.lang.IllegalStateException:=20 > java.lang.NoSuchMethodException: > > > >> >> =3D > > > >> >> Class.create (Class); > > > >> >> at > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.checkM > > > >> >> odel( > > > >> >> CompanyModelTest.java:194) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.setUp( > > > >> >> CompanyModelTest.java:66) > > > >> >> at junit.framework.TestCase.runBare=20 > (TestCase.java:125) > > > >> >> at=20 > junit.framework.TestResult$1.protect(TestResult.java: > > > >> 106) > > > >> >> at=20 > junit.framework.TestResult.runProtected(TestResult.java: > > > >> >> 124) > > > >> >> at=20 > junit.framework.TestResult.run(TestResult.java:109) > > > >> >> at junit.framework.TestCase.run(TestCase.java:118) > > > >> >> at junit.framework.TestSuite.runTest=20 > (TestSuite.java:208) > > > >> >> at junit.framework.TestSuite.run(TestSuite.java:203) > > > >> >> at=20 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > >> Method) > > > >> >> at sun.reflect.NativeMethodAccessorImpl.invoke( > > > >> >> NativeMethodAccessorImpl.java:64) > > > >> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > >> >> DelegatingMethodAccessorImpl.java :43) > > > >> >> at java.lang.reflect.Method.invoke(Method.java:615) > > > >> >> at=20 > org.apache.maven.surefire.junit.JUnitTestSet.execute( > > > >> >> JUnitTestSet.java:210) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > > > >> >> tSet( > > > >> >> AbstractDirectoryTestSuite.java:135) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute( > > > >> >> AbstractDirectoryTestSuite.java:122) > > > >> >> at org.apache.maven.surefire.Surefire.run=20 > (Surefire.java: > > > >> 129) > > > >> >> at=20 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > >> Method) > > > >> >> at sun.reflect.NativeMethodAccessorImpl.invoke( > > > >> >> NativeMethodAccessorImpl.java:64) > > > >> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > >> >> DelegatingMethodAccessorImpl.java:43) > > > >> >> at java.lang.reflect.Method.invoke (Method.java:615) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess( > > > >> >> SurefireBooter.java:225) > > > >> >> at=20 > org.apache.maven.surefire.booter.SurefireBooter.main( > > > >> >> SurefireBooter.java:747) > > > >> >> Caused by: java.lang.NoSuchMethodException:=20 > =3DClass.create > > > >> >> (Class); > > > >> >> at java.beans.Statement.invoke(Statement.java:269) > > > >> >> at .(Unknown Source) > > > >> >> at com.sun.beans.ObjectHandler.eval=20 > (ObjectHandler.java > > > :148) > > > >> >> at com.sun.beans.ObjectHandler.startElement > > > >> >> (ObjectHandler.java:250) > > > >> >> at=20 > org.apache.xerces.parsers.AbstractSAXParser.startElement > > > >> >> (Unknown > > > >> >> Source) > > > >> >> at=20 > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement > > > >> >> (Unknown > > > >> >> Source) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen > > > >> >> t(Unknown > > > >> >> Source) > > > >> >> at > > > >> >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl > > > >> >> $FragmentContentDispatcher.dispatch(Unknown > > > >> >> Source) > > > >> >> at > > > >> >>=20 > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > > >> >> (Unknown > > > >> >> Source) > > > >> >> at=20 > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > >> >> Source) > > > >> >> at=20 > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > >> >> Source) > > > >> >> at org.apache.xerces.parsers.XMLParser.parse(Unknown > > > >> Source) > > > >> >> at org.apache.xerces.parsers.AbstractSAXParser.parse > > > >> >> (Unknown Source) > > > >> >> at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown > > > >> Source) > > > >> >> at javax.xml.parsers.SAXParser.parse(Unknown Source) > > > >> >> at=20 > java.beans.XMLDecoder.readObject(XMLDecoder.java:220) > > > >> >> at > > > >> >> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.checkM > > > >> >> odel( > > > >> >> CompanyModelTest.java:191) > > > >> >> ... 22 more > > > >> >> > > > >> >> > > > >> >> On 2/10/07, Marc Prud'hommeaux < mprudhom@apache.org> wrote: > > > >> >>> > > > >> >>> Kevin- > > > >> >>> > > > >> >>> Weird. From the error message, it looks like there is some > > > >> problem > > > >> >>> with deserializing the default model from the=20 > companies.xml file > > > >> >>> from > > > >> >>> the XMLDecoder. > > > >> >>> > > > >> >>> I've put some extra debugging logic in the=20 > CompanyModelTest.java > > > >> >>> that > > > >> >>> should throw a better error when the deserialization fails. > > > >> Can you > > > >> >>> update and re-run the test and let us know if the=20 > stack trace > > > >> >>> changes? > > > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> On Feb 10, 2007, at 6:21 PM, Kevin Sutter wrote: > > > >> >>> > > > >> >>> > Hi, > > > >> >>> > After synching up with the latest changes in SVN, I am > > > >> hitting an > > > >> >>> > intermittent problem while running the new tests in > > > >> >>> > openjpa-persistence-jdbc. Every once in a=20 > while, I am getting > > > >> >>> > hundreds of > > > >> >>> > messsages like the following: > > > >> >>> > > > > >> >>> > Running > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.TestPro > > > >> >>> pe > > > >> >>> > rtyCompanyModel > > > >> >>> > 0 test INFO [main] openjpa.Runtime -=20 > Starting OpenJPA 0.0.0 > > > >> >>> > 0 test INFO [main] openjpa.jdbc.JDBC -=20 > OpenJPA will now > > > >> >>> connect > > > >> >>> > to the > > > >> >>> > database to attempt to determine what type of database > > > >> dictionary > > > >> >>> > to use. > > > >> >>> > To prevent this connection in the future, set your > > > >> >>> > openjpa.jdbc.DBDictionaryconfiguration property to the > > > >> appropriate > > > >> >>> > value for your database (see the > > > >> >>> > documentation foravailable values). > > > >> >>> > 10 test INFO [main] openjpa.jdbc.JDBC -=20 > Using dictionary > > > >> >>> class " > > > >> >>> > org.apache.openjpa.jdbc.sql.DerbyDictionary"=20 > (Apache Derby > > > >> >>> 10.2.2.0 - > > > >> >>> > (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - > > > >> (485682)). > > > >> >>> > 20 test INFO [main] openjpa.MetaData - Found=20 > 10 classes > > > >> with > > > >> >>> > metadata in > > > >> >>> > 0 milliseconds. > > > >> >>> > : > > > >> >>> > : > > > >> >>> > 4046 test INFO [main] openjpa.MetaData -=20 > Parsing class " > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.LineIte > > > >> >>> m" > > > >> >>> > . > > > >> >>> > java.lang.NoSuchMethodException:=20 > =3DClass.create(Class); > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NullPointerException: target should not be null > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NoSuchMethodException:=20 > =3DClass.create(Class); > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NullPointerException: target should not be null > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NoSuchMethodException:=20 > =3DClass.create(Class); > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NullPointerException: target should not be null > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NoSuchMethodException:=20 > =3DClass.create(Class); > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NullPointerException: target should not be null > > > >> >>> > Continuing ... > > > >> >>> > java.lang.NoSuchMethodException : = =3DClass.create > > > (Class); > > > >> >>> > Continuing ... > > > >> >>> > : > > > >> >>> > : dozen repeats> > > > >> >>> > : > > > >> >>> > Tests run: 1, Failures: 1, Errors: 0, Skipped:=20 > 0, Time elapsed: > > > >> >>> > 4.346 sec > > > >> >>> > <<< FAILURE! > > > >> >>> > testBasicQueries( > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.propertyaccess.TestPro > > > >> >>> pe > > > >> >>> > rtyCompanyModel) > > > >> >>> > Time elapsed: 4.336 sec <<< FAILURE! > > > >> >>> > junit.framework.AssertionFailedError:=20 > expected:<2> but was:<0> > > > >> >>> > at junit.framework.Assert.fail(Assert.java:47) > > > >> >>> > at=20 > junit.framework.Assert.failNotEquals(Assert.java:282) > > > >> >>> > at=20 > junit.framework.Assert.assertEquals(Assert.java:64) > > > >> >>> > at=20 > junit.framework.Assert.assertEquals(Assert.java:201) > > > >> >>> > at=20 > junit.framework.Assert.assertEquals(Assert.java:207) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.verif > > > >> >>> yM > > > >> >>> > odel( > > > >> >>> > CompanyModelTest.java:211) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.check > > > >> >>> Mo > > > >> >>> > del( > > > >> >>> > CompanyModelTest.java:195) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.openjpa.persistence.models.company.CompanyModelTest.setUp > > > >> >>> ( > > > >> >>> > CompanyModelTest.java:66) > > > >> >>> > at=20 > junit.framework.TestCase.runBare(TestCase.java:125) > > > >> >>> > at junit.framework.TestResult$1.protect=20 > (TestResult.java > > > : > > > >> >>> 106) > > > >> >>> > at junit.framework.TestResult.runProtected > > > >> >>> (TestResult.java:124) > > > >> >>> > at junit.framework.TestResult.run=20 > (TestResult.java:109) > > > >> >>> > at junit.framework.TestCase.run(TestCase.java:118) > > > >> >>> > at=20 > junit.framework.TestSuite.runTest(TestSuite.java:208) > > > >> >>> > at=20 > junit.framework.TestSuite.run(TestSuite.java:203) > > > >> >>> > at=20 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > >> >>> Method) > > > >> >>> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > > > >> >>> > NativeMethodAccessorImpl.java:64) > > > >> >>> > at=20 > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > >> >>> > DelegatingMethodAccessorImpl.java:43) > > > >> >>> > at=20 > java.lang.reflect.Method.invoke(Method.java:615) > > > >> >>> > at=20 > org.apache.maven.surefire.junit.JUnitTestSet.execute( > > > >> >>> > JUnitTestSet.java :210) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTe > > > >> >>> st > > > >> >>> > Set( > > > >> >>> > AbstractDirectoryTestSuite.java:135) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute ( > > > >> >>> > AbstractDirectoryTestSuite.java:122) > > > >> >>> > at=20 > org.apache.maven.surefire.Surefire.run(Surefire.java: > > > >> >>> 129) > > > >> >>> > at=20 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > >> >>> Method) > > > >> >>> > at sun.reflect.NativeMethodAccessorImpl.invoke( > > > >> >>> > NativeMethodAccessorImpl.java :64) > > > >> >>> > at=20 > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > >> >>> > DelegatingMethodAccessorImpl.java:43) > > > >> >>> > at java.lang.reflect.Method.invoke=20 > (Method.java:615) > > > >> >>> > at > > > >> >>> > > > > >> >>> > > > >>=20 > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess( > > > >> >>> > SurefireBooter.java:225) > > > >> >>> > at=20 > org.apache.maven.surefire.booter.SurefireBooter.main( > > > >> >>> > SurefireBooter.java:747) > > > >> >>> > > > > >> >>> > They seem to most often happen when I do a=20 > complete top-down > > > >> build > > > >> >>> > from the > > > >> >>> > openjpa directory (mvn clean && mvn install) and let it > > > >> >>> traverse the > > > >> >>> > sub-projects. This is from the command line=20 > (not Eclipse). > > > >> >>> > > > > >> >>> > I can immediately turn around and do a "mvn=20 > test" from the > > > >> openjpa > > > >> >>> > directory > > > >> >>> > and everything tests out just fine. > > > >> >>> > > > > >> >>> > Any ideas on what is causing these type of=20 > errors? I don't see > > > >> >>> > anywhere in > > > >> >>> > our code where we are producing these type of=20 > messages. I'm > > > >> not > > > >> >>> > sure if > > > >> >>> > it's related to one of our dependencies (serp?),=20 > or maybe it's > > > >> >>> > another IBM > > > >> >>> > JDK anomaly (haven't been able to reproduce with=20 > Sun yet, but > > > >> >>> it is an > > > >> >>> > intermittent problem). > > > >> >>> > > > > >> >>> > Thanks, > > > >> >>> > Kevin > > > >> >>> > > > >> >>> > > > >> > > > > >> > Craig Russell > > > >> > Architect, Sun Java Enterprise System http://java.sun.com/ > > > >> products/jdo > > > >> > 408 276-5638 mailto: Craig.Russell@sun.com > > > >> > P.S. A good JDO? O, Gasp! > > > >> > > > > >> > > > >> > > > > > > > > >=20