What about 'mvn package -Dtest=false'?

-Patrick

On 8/21/07, Pinaki Poddar <[EMAIL PROTECTED]> wrote:
> 1. Download source.zip
> 2. Unpack
> 3. mvn package
> 4. Failed with
>
> testBasicQueries(org.apache.openjpa.persistence.models.company.idclass.T
> estIdClassCompanyModel)  Time elapsed: 46.096 se
> c  <<< ERROR!
> <openjpa-0.0.0-rexported nonfatal general error>
> org.apache.openjpa.persistence.PersistenceException: No current connect
> ion.
>         at
> org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.
> java:3849)
>         at
> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97
> )
>         at
> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83
> )
>         at
> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59
> )
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.rollback(JDBCStoreManage
> r.java:190)
>         at
> org.apache.openjpa.kernel.DelegatingStoreManager.rollback(DelegatingStor
> eManager.java:98)
>         at
> org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerIm
> pl.java:1248)
>         at
> org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2113
> )
>         at
> org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:178
> 2)
>         at
> org.apache.openjpa.kernel.LocalManagedRuntime.rollback(LocalManagedRunti
> me.java:124)
>         at
> org.apache.openjpa.kernel.BrokerImpl.rollback(BrokerImpl.java:1314)
>         at
> org.apache.openjpa.kernel.DelegatingBroker.rollback(DelegatingBroker.jav
> a:869)
>         at
> org.apache.openjpa.persistence.EntityManagerImpl.rollback(EntityManagerI
> mpl.java:424)
>         at
> org.apache.openjpa.persistence.test.PersistenceTestCase.closeEMF(Persist
> enceTestCase.java:107)
>         at
> org.apache.openjpa.persistence.test.SingleEMFTestCase.tearDown(SingleEMF
> TestCase.java:59)
>         at
> org.apache.openjpa.persistence.test.SingleEMTestCase.tearDown(SingleEMTe
> stCase.java:54)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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)
> org.apache.maven.surefire.booter.SurefireExecutionException:
> org.apache.openjpa.jdbc.kernel.TestNoForeignKeyViolation; n
> ested exception is java.lang.OutOfMemoryError: Java heap space; nested
> exception is org.apache.maven.surefire.testset.Te
> stSetFailedException:
> org.apache.openjpa.jdbc.kernel.TestNoForeignKeyViolation; nested
> exception is java.lang.OutOfMemor
> yError: Java heap space
> org.apache.maven.surefire.testset.TestSetFailedException:
> org.apache.openjpa.jdbc.kernel.TestNoForeignKeyViolation; nest
> ed exception is java.lang.OutOfMemoryError: Java heap space
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:2
> 10)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
> t(AbstractDirectoryTestSuite.java:135
> )
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
> actDirectoryTestSuite.java:122)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
> ireBooter.java:225)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
> :747)
> Caused by: java.sql.SQLTransientConnectionException: No current
> connection.
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
> Source)
> java.lang.OutOfMemoryError: Java heap space
>         at java.io.BufferedWriter.<init>(Unknown Source)
>         at java.io.BufferedWriter.<init>(Unknown Source)
>         at java.io.PrintStream.init(Unknown Source)
>         at java.io.PrintStream.<init>(Unknown Source)
>         at java.io.PrintStream.<init>(Unknown Source)
>         at
> org.apache.maven.surefire.util.TeeStream.<init>(TeeStream.java:32)
>         at
> org.apache.maven.surefire.report.ReporterManager.testStarting(ReporterMa
> nager.java:251)
>         at
> org.apache.maven.surefire.junit.TestListenerInvocationHandler.handleStar
> tTest(TestListenerInvocationHandler.j
> ava:153)
>         at
> org.apache.maven.surefire.junit.TestListenerInvocationHandler.invoke(Tes
> tListenerInvocationHandler.java:130)
>         at $Proxy0.startTest(Unknown Source)
>         at junit.framework.TestResult.startTest(TestResult.java:151)
>         at junit.framework.TestResult.run(TestResult.java:103)
>         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.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:2
> 10)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
> t(AbstractDirectoryTestSuite.java:135
> )
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
> actDirectoryTestSuite.java:122)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
> ireBooter.java:225)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
> :747)
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown
> Source)
>         at
> org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)
>         at
> org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown
> Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown
> Source)
>         at
> org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnecti
> on.java:265)
>         at
> org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.rol
> lback(PoolingDataSource.java:288)
>         at
> org.apache.openjpa.lib.jdbc.DelegatingConnection.rollback(DelegatingConn
> ection.java:208)
>         at
> org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection
> .rollback(LoggingConnectionDecorator.
> java:268)
>         at
> org.apache.openjpa.lib.jdbc.DelegatingConnection.rollback(DelegatingConn
> ection.java:208)
>         at
> org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator$ConfiguringCo
> nnection.rollback(ConfiguringConnecti
> onDecorator.java:132)
>         at
> org.apache.openjpa.lib.jdbc.DelegatingConnection.rollback(DelegatingConn
> ection.java:208)
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.rollback(JDBCStoreManage
> r.java:188)
>         ... 32 more
> Caused by: java.sql.SQLException: No current connection.
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
>         at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcr
> ossDRDA(Unknown Source)
>         ... 47 more
>
>
> Pinaki Poddar
> 972.834.2865
>
> -----Original Message-----
> From: Pinaki Poddar [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 21, 2007 12:07 PM
> To: [email protected]
> Subject: RE: [VOTE] Approve OpenJPA 1.0.0 release
>
> On Windows XP/FireFox Browser (version 2.0.0.6), multiple attempts to
> download apache-openjpa-1.0.0-binary.zip From
> http://openjpa.apache.org/builds/1.0.0/downloads/ failed with "Can not
> open file: It does not appear to be valid archive".
>
> apache-openjpa-1.0.0-source.zip downloaded without any problem.
>
>
>
> Pinaki Poddar
> 972.834.2865
>
> -----Original Message-----
> From: Marc Prud'hommeaux [mailto:[EMAIL PROTECTED] On Behalf Of
> Marc Prud'hommeaux
> Sent: Tuesday, August 21, 2007 11:42 AM
> To: [email protected]
> Subject: [VOTE] Approve OpenJPA 1.0.0 release
>
> OpenJPA Developers-
>
> A candidate build for OpenJPA 1.0.0 is available at:
>
>    http://openjpa.apache.org/builds/1.0.0/downloads/
>
> Please review these artifacts and signatures, and vote whether we should
> release them as Apache OpenJPA version 1.0.0. Release notes for this
> release are included in the artifact, or can be browsed at:
>
>    http://svn.apache.org/repos/asf/openjpa/branches/1.0.0/openjpa-
> project/RELEASE-NOTES.html
>
> The Apache Release Audit Tool has been run on the release, and no
> missing licenses were found with the exceptions listed in the exclusion
> section of the "rat-maven-plugin" configuration in http://
> svn.apache.org/repos/asf/openjpa/branches/1.0.0/pom.xml .
>
> In accordance with http://www.apache.org/foundation/
> voting.html#ReleaseVotes , three +1 votes will be sufficient to approve
> the release for publication. While it is not possible to veto a release,
> the vote will remain open for the standard 3 day period (ending at 12:00
> EST on Friday 8/24) in order to allow people to thoroughly review the
> release and perform whatever additional testing they desire and raise
> any concerns or objections.
>
> A vote of "+1" means you approve of the release for publication, "-1"
> means you do not approve, and a "+0" or "-0" means you are neutral.
>
> Thanks in advance for your diligence in helping to ensure that the
> quality of the OpenJPA 1.0.0 release reflects the high quality of all of
> its contributors!
>
>
>
> 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.
>
> 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

Reply via email to