Intermittent test failure - QuickJPAStoreRecoveryBrokerTest
-----------------------------------------------------------
Key: AMQ-2074
URL: https://issues.apache.org/activemq/browse/AMQ-2074
Project: ActiveMQ
Issue Type: Bug
Components: Message Store
Affects Versions: 5.3.0
Environment: os x 10.5.6
Reporter: David Jencks
running through maven -- failed two times, then succeeded.
Running in IDEA -- hung once, then all tests passed.
surefire report:
<testcase time="0.349" name="testQueueNonPersistentMessagesLostOnRestart">
<error type="&openjpa-1.0.0-r420667" message="The context has been
closed. The stack trace at which the context was closed is available if
Runtime=TRACE logging is enabled.">&openjpa-1.0.0-r420667:568756 fatal user
error& org.apache.openjpa.persistence.InvalidStateException: The context
has been closed. The stack trace at which the context was closed is available
if Runtime=TRACE logging is enabled.
at org.apache.openjpa.kernel.BrokerImpl.assertOpen(BrokerImpl.java:4291)
at
org.apache.openjpa.kernel.BrokerImpl.beginOperation(BrokerImpl.java:1702)
at
org.apache.openjpa.kernel.BrokerImpl.getUserObject(BrokerImpl.java:563)
at
org.apache.openjpa.persistence.JPAFacadeHelper.toEntityManager(JPAFacadeHelper.java:113)
at
org.apache.openjpa.persistence.PersistenceExceptions.getFailedObject(PersistenceExceptions.java:246)
at
org.apache.openjpa.persistence.PersistenceExceptions.translateUserException(PersistenceExceptions.java:190)
at
org.apache.openjpa.persistence.PersistenceExceptions.translateException(PersistenceExceptions.java:131)
at
org.apache.openjpa.persistence.PersistenceExceptions.getNestedThrowables(PersistenceExceptions.java:233)
at
org.apache.openjpa.persistence.PersistenceExceptions.translateUserException(PersistenceExceptions.java:190)
at
org.apache.openjpa.persistence.PersistenceExceptions.translateException(PersistenceExceptions.java:131)
at
org.apache.openjpa.persistence.PersistenceExceptions.toPersistenceException(PersistenceExceptions.java:83)
at
org.apache.openjpa.persistence.PersistenceExceptions$1.translate(PersistenceExceptions.java:43)
at
org.apache.openjpa.kernel.DelegatingBrokerFactory.translate(DelegatingBrokerFactory.java:96)
at
org.apache.openjpa.kernel.DelegatingBrokerFactory.close(DelegatingBrokerFactory.java:185)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:286)
at
org.apache.activemq.store.jpa.JPAPersistenceAdapter.stop(JPAPersistenceAdapter.java:214)
at
org.apache.activemq.store.amq.AMQPersistenceAdapter.stop(AMQPersistenceAdapter.java:327)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:512)
at
org.apache.activemq.broker.BrokerTestSupport.tearDown(BrokerTestSupport.java:101)
at junit.framework.TestCase.runBare(TestCase.java:130)
at
org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
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.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.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(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)
</error>
<system-err>1 activemq INFO [main] openjpa.Runtime - Starting OpenJPA
1.0.0
1 activemq INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
52 activemq INFO [main] openjpa.Enhance - Creating subclass and redefining
methods for "[class org.apache.activemq.store.jpa.model.StoredMessage,
class org.apache.activemq.store.jpa.model.StoredMessageReference]". This
means that your application will be less efficient than it would if you ran the
OpenJPA enhancer.
0 activemq INFO [main] openjpa.Runtime - Starting OpenJPA 1.0.0
0 activemq INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
55 activemq INFO [main] openjpa.Enhance - Creating subclass and redefining
methods for "[class org.apache.activemq.store.jpa.model.StoredMessage,
class org.apache.activemq.store.jpa.model.StoredMessageReference]". This
means that your application will be less efficient than it would if you ran the
OpenJPA enhancer.
</system-err>
</testcase>
2nd report:
<testcase time="0.398" name="testQueueNonPersistentMessagesLostOnRestart">
<error type="&openjpa-1.0.0-r420667" message="This operation failed for
some instances. See the nested exceptions array for
details.">&openjpa-1.0.0-r420667:568756 nonfatal user error&
org.apache.openjpa.persistence.InvalidStateException: This operation failed for
some instances. See the nested exceptions array for details.
at
org.apache.openjpa.kernel.AbstractBrokerFactory.assertNoActiveTransaction(AbstractBrokerFactory.java:696)
at
org.apache.openjpa.kernel.AbstractBrokerFactory.close(AbstractBrokerFactory.java:373)
at
org.apache.openjpa.kernel.DelegatingBrokerFactory.close(DelegatingBrokerFactory.java:183)
at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:286)
at
org.apache.activemq.store.jpa.JPAPersistenceAdapter.stop(JPAPersistenceAdapter.java:214)
at
org.apache.activemq.store.amq.AMQPersistenceAdapter.stop(AMQPersistenceAdapter.java:327)
at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:512)
at
org.apache.activemq.broker.BrokerTestSupport.tearDown(BrokerTestSupport.java:101)
at junit.framework.TestCase.runBare(TestCase.java:130)
at
org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
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.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.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(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)
Caused by: &openjpa-1.0.0-r420667:568756 nonfatal user error&
org.apache.openjpa.persistence.InvalidStateException: This operation cannot be
performed while a Transaction is active.
FailedObject: org.apache.openjpa.persistence.entitymanageri...@631cb0
at
org.apache.openjpa.kernel.AbstractBrokerFactory.assertNoActiveTransaction(AbstractBrokerFactory.java:690)
... 30 more
</error>
<system-err>1 activemq INFO [main] openjpa.Runtime - Starting OpenJPA
1.0.0
4 activemq INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
1 activemq INFO [main] openjpa.Runtime - Starting OpenJPA 1.0.0
1 activemq INFO [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.DerbyDictionary".
</system-err>
</testcase>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.