Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 29070 invoked from network); 25 May 2007 03:39:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 03:39:24 -0000 Received: (qmail 6918 invoked by uid 500); 25 May 2007 03:39:26 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 6891 invoked by uid 500); 25 May 2007 03:39:26 -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 6870 invoked by uid 99); 25 May 2007 03:39:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 20:39:26 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 20:39:20 -0700 Received: by py-out-1112.google.com with SMTP id p76so479068pyb for ; Thu, 24 May 2007 20:38:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Iw49+AluEeKcKU1Y49x8G6fs9H9DDv2bNsc4FdxYIl8sf2r2FPBrDdPBdOY627TQ4aLtriU1tzG5k/hG9xwD2mChL7axAjvR1HlD+PNMWmHOrvzfxsUgShYQS7YL34mVbIb2MKbIx9fEXuJzDG4zs0TZtN/NIigbonFgu2EDUsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XkP4QWNvrbVe92x3o0U67Jv5kWgHVIU55EYZMVjel7JyoJhafKHyuKO/pXoOrCbthKbcTdn9jxJ7rxlPqJwd+jph3yPk1bJTgsELOFEJrnZ70IUFjtTCKvXIbPDZEaeWNPhb9gV+Jg48uc3yKGtQPy3z9TgO3kyP9SgHDBVAbTg= Received: by 10.35.93.1 with SMTP id v1mr1480519pyl.1180064334073; Thu, 24 May 2007 20:38:54 -0700 (PDT) Received: by 10.35.8.4 with HTTP; Thu, 24 May 2007 20:38:54 -0700 (PDT) Message-ID: <7262f25e0705242038i267ddc26odfaca8af13a87898@mail.gmail.com> Date: Thu, 24 May 2007 20:38:54 -0700 From: plinskey@gmail.com To: open-jpa-dev@incubator.apache.org Subject: Re: Test failures In-Reply-To: <5C8A6AE1-5AB4-4935-8B11-ECB7C7599852@SUN.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <73B07C80-284D-4130-868C-59274AE638ED@SUN.com> <7262f25e0705241547n675f5296p3636956b27dd516@mail.gmail.com> <5C8A6AE1-5AB4-4935-8B11-ECB7C7599852@SUN.com> X-Virus-Checked: Checked by ClamAV on apache.org FWIW, I suspect that the problem is with the test case, not the switch. it sounds like the test case isn't clearing the db in it's setUp()... that's often the case when the result count is double the expected number. -Patrick On 5/24/07, Craig L Russell wrote: > Same here. > > Craig > > On May 24, 2007, at 5:28 PM, Pinaki Poddar wrote: > > > Yes, 'svn clean' was missing. > > $ svn switch /path/to/new/location > > $ mvn clean package > > runs successfully > > > > > > Pinaki Poddar > > BEA Systems > > 415.402.7317 > > > > > > -----Original Message----- > > From: Patrick Linskey [mailto:plinskey@gmail.com] > > Sent: Thursday, May 24, 2007 5:48 PM > > To: open-jpa-dev@incubator.apache.org > > Subject: Re: Test failures > > > > That sounds like a non-clean database or something. What happens > > with a > > 'mvn clean' first? > > > > All tests are passing on my CI machine. > > > > -Patrick > > > > On 5/24/07, Pinaki Poddar wrote: > >>> Is it just me, or is integration-test broken? > >> Observed the same since did a 'svn switch' > >> > >> > >> Pinaki Poddar > >> BEA Systems > >> 415.402.7317 > >> > >> > >> -----Original Message----- > >> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] > >> Sent: Thursday, May 24, 2007 4:07 PM > >> To: open-jpa-dev@incubator.apache.org > >> Subject: Test failures > >> > >> Is it just me, or is integration-test broken? > >> > >> [INFO] > >> --------------------------------------------------------------------- > >> - > >> -- > >> ---- > >> [INFO] Building OpenJPA JPA JDBC > >> [INFO] task-segment: [integration-test] > >> [INFO] > >> --------------------------------------------------------------------- > >> - > >> -- > >> ---- > >> ... > >> Everything is fine until this. Something I'm doing wrong perhaps? > >> > >> Running org.apache.openjpa.persistence.relations.TestLRS > >> 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 0.0.0 > >> 1 test INFO [main] openjpa.jdbc.JDBC - 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.DBDictionary configuration property to the appropriate > >> value for your database (see the documentation for available values). > >> 2 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)). > >> 0 test INFO [main] openjpa.Runtime - Starting 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 database > >> dictionary to use. To prevent this connection in the future, set > >> your > > > >> openjpa.jdbc.DBDictionary configuration property to the appropriate > >> value for your database (see the documentation for available values). > >> 2 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)). > >> 0 test INFO [main] openjpa.Runtime - Starting 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 database > >> dictionary to use. To prevent this connection in the future, set > >> your > > > >> openjpa.jdbc.DBDictionary configuration property to the appropriate > >> value for your database (see the documentation for available values). > >> 1 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)). > >> Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.205 > >> sec <<< FAILURE! > >> testEMClear(org.apache.openjpa.persistence.relations.TestLRS) Time > >> elapsed: 0.095 sec <<< FAILURE! > >> junit.framework.AssertionFailedError: expected:<3> but was:<6> > >> at junit.framework.Assert.fail(Assert.java:47) > >> at junit.framework.Assert.failNotEquals(Assert.java:282) > >> at junit.framework.Assert.assertEquals(Assert.java:64) > >> at junit.framework.Assert.assertEquals(Assert.java:201) > >> at junit.framework.Assert.assertEquals(Assert.java:207) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS > >> (TestLRS.java:92) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.testEMClear > >> (TestLRS.java:62) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at junit.framework.TestCase.runTest(TestCase.java:154) > >> at junit.framework.TestCase.runBare(TestCase.java:127) > >> at junit.framework.TestResult$1.protect(TestResult.java:106) > >> at > > junit.framework.TestResult.runProtected(TestResult.java:124) > >> at junit.framework.TestResult.run(TestResult.java:109) > >> at junit.framework.TestCase.run(TestCase.java:118) > >> at junit.framework.TestSuite.runTest(TestSuite.java:208) > >> at junit.framework.TestSuite.run(TestSuite.java:203) > >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown > >> Source) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at org.apache.maven.surefire.junit.JUnitTestSet.execute > >> (JUnitTestSet.java:210) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > >> t > >> Se > >> t(AbstractDirectoryTestSuite.java:135) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute > >> (AbstractDirectoryTestSuite.java:122) > >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at > >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess > >> (SurefireBooter.java:225) > >> at org.apache.maven.surefire.booter.SurefireBooter.main > >> (SurefireBooter.java:747) > >> > >> testEMClose(org.apache.openjpa.persistence.relations.TestLRS) Time > >> elapsed: 0.053 sec <<< FAILURE! > >> junit.framework.AssertionFailedError: expected:<3> but was:<6> > >> at junit.framework.Assert.fail(Assert.java:47) > >> at junit.framework.Assert.failNotEquals(Assert.java:282) > >> at junit.framework.Assert.assertEquals(Assert.java:64) > >> at junit.framework.Assert.assertEquals(Assert.java:201) > >> at junit.framework.Assert.assertEquals(Assert.java:207) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS > >> (TestLRS.java:92) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.testEMClose > >> (TestLRS.java:72) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at junit.framework.TestCase.runTest(TestCase.java:154) > >> at junit.framework.TestCase.runBare(TestCase.java:127) > >> at junit.framework.TestResult$1.protect(TestResult.java:106) > >> at > > junit.framework.TestResult.runProtected(TestResult.java:124) > >> at junit.framework.TestResult.run(TestResult.java:109) > >> at junit.framework.TestCase.run(TestCase.java:118) > >> at junit.framework.TestSuite.runTest(TestSuite.java:208) > >> at junit.framework.TestSuite.run(TestSuite.java:203) > >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown > >> Source) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at org.apache.maven.surefire.junit.JUnitTestSet.execute > >> (JUnitTestSet.java:210) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > >> t > >> Se > >> t(AbstractDirectoryTestSuite.java:135) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute > >> (AbstractDirectoryTestSuite.java:122) > >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at > >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess > >> (SurefireBooter.java:225) > >> at org.apache.maven.surefire.booter.SurefireBooter.main > >> (SurefireBooter.java:747) > >> > >> testDetachCopy(org.apache.openjpa.persistence.relations.TestLRS) > >> Time elapsed: 0.05 sec <<< FAILURE! > >> junit.framework.AssertionFailedError: expected:<3> but was:<6> > >> at junit.framework.Assert.fail(Assert.java:47) > >> at junit.framework.Assert.failNotEquals(Assert.java:282) > >> at junit.framework.Assert.assertEquals(Assert.java:64) > >> at junit.framework.Assert.assertEquals(Assert.java:201) > >> at junit.framework.Assert.assertEquals(Assert.java:207) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS > >> (TestLRS.java:92) > >> at > >> org.apache.openjpa.persistence.relations.TestLRS.testDetachCopy > >> (TestLRS.java:81) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at junit.framework.TestCase.runTest(TestCase.java:154) > >> at junit.framework.TestCase.runBare(TestCase.java:127) > >> at junit.framework.TestResult$1.protect(TestResult.java:106) > >> at > > junit.framework.TestResult.runProtected(TestResult.java:124) > >> at junit.framework.TestResult.run(TestResult.java:109) > >> at junit.framework.TestCase.run(TestCase.java:118) > >> at junit.framework.TestSuite.runTest(TestSuite.java:208) > >> at junit.framework.TestSuite.run(TestSuite.java:203) > >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown > >> Source) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at org.apache.maven.surefire.junit.JUnitTestSet.execute > >> (JUnitTestSet.java:210) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > >> t > >> Se > >> t(AbstractDirectoryTestSuite.java:135) > >> at > >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute > >> (AbstractDirectoryTestSuite.java:122) > >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > >> at sun.reflect.NativeMethodAccessorImpl.invoke > >> (NativeMethodAccessorImpl.java:39) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at > >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess > >> (SurefireBooter.java:225) > >> at org.apache.maven.surefire.booter.SurefireBooter.main > >> (SurefireBooter.java:747) > >> > >> 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! > >> > >> > >> 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. > >> > > > > > > -- > > Patrick Linskey > > 202 669 5907 > > > > 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. > > 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! > > -- Patrick Linskey 202 669 5907