activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AMQ-2074) Intermittent test failure - QuickJPAStoreRecoveryBrokerTest
Date Mon, 23 Feb 2009 14:35:00 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dejan Bosanac reassigned AMQ-2074:
----------------------------------

    Assignee: Dejan Bosanac

> 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
>            Assignee: Dejan Bosanac
>
> 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="&amp;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.">&amp;openjpa-1.0.0-r420667:568756 fatal user error&amp; 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 &quot;org.apache.openjpa.jdbc.sql.DerbyDictionary&quot;.
> 52  activemq  INFO   [main] openjpa.Enhance - Creating subclass and redefining methods
for &quot;[class org.apache.activemq.store.jpa.model.StoredMessage, class org.apache.activemq.store.jpa.model.StoredMessageReference]&quot;.
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 &quot;org.apache.openjpa.jdbc.sql.DerbyDictionary&quot;.
> 55  activemq  INFO   [main] openjpa.Enhance - Creating subclass and redefining methods
for &quot;[class org.apache.activemq.store.jpa.model.StoredMessage, class org.apache.activemq.store.jpa.model.StoredMessageReference]&quot;.
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="&amp;openjpa-1.0.0-r420667" message="This operation failed for
some instances.  See the nested exceptions array for details.">&amp;openjpa-1.0.0-r420667:568756
nonfatal user error&amp; 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: &amp;openjpa-1.0.0-r420667:568756 nonfatal user error&amp; org.apache.openjpa.persistence.InvalidStateException:
This operation cannot be performed while a Transaction is active.
> FailedObject: org.apache.openjpa.persistence.EntityManagerImpl@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 &quot;org.apache.openjpa.jdbc.sql.DerbyDictionary&quot;.
> 1  activemq  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.0.0
> 1  activemq  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.DerbyDictionary&quot;.
> </system-err>
>   </testcase>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message