JBAS-5278 Errors .
vickyk Apr 2, 2008 7:45 AMI have been seeing the following error in org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase testcase .
2008-04-01 17:58:53,658 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:59944]) commit problem: org.jboss.resource.JBossResourceException: Could not commit LocalTransaction; - nested throwable: (javax.jms.TransactionInProgressException: Cannot call commit on an XA session) at org.jboss.resource.adapter.jms.JmsLocalTransaction.commit(JmsLocalTransaction.java:60) at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:990) at com.arjuna.ats.internal.jta.resources.arjunacore.XAOnePhaseResource.commit(XAOnePhaseResource.java:110) at com.arjuna.ats.arjuna.LastResourceRecord.topLevelPrepare(LastResourceRecord.java:170) at com.arjuna.ats.arjuna.coordinator.AbstractRecord.topLevelOnePhaseCommit(AbstractRecord.java:441) at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2639) at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1784) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88) at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177) at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1390) at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135) at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75) at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.setupQueue(ExecuteJMSDuringRollbackStressTestCase.java:262) at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.testExecuteJMSDuringRollback(ExecuteJMSDuringRollbackStressTestCase.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
These details I have found from the server log .
I am not sure why this is failing here .
What could be the problem ?
I made changes in the test-jms-local-ds.xml at tx-connection-factory
<xa-transaction/>
This got me the rid of the above exception but the test failed with this error details
Expected one text message: null java.lang.RuntimeException: Expected one text message: null at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.checkQueue(ExecuteJMSDuringRollbackStressTestCase.java:280) at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.testExecuteJMSDuringRollback(ExecuteJMSDuringRollbackStressTestCase.java:99)
Any inputs here ?