0 Replies Latest reply on May 6, 2005 4:12 PM by Tim McCune

    Could not start a transaction with the transaction manager

    Tim McCune Novice

      JBoss 4.0.1, Oracle 9.2.
      I'm getting the following exception happening in my app randomly. The exception message says "could not start a transaction", but it's coming from a method called "endTX". It does look like it's trying to end the transaction, since I see a commit() call in the stack trace, so maybe the exception message is just wrong? The 2nd nested exception message reads "Unable to commit", but I'm not seeing any other informative messages about why it's unable to commit. Any ideas?

      org.jboss.mq.SpyJMSException: Could not start a transaction with the transaction manager.; - nested throwable: (org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=redback.hmsonline.com/3992, BranchQual=, localId=3992] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException))
      at org.jboss.mq.pm.jdbc3.PersistenceManager$TransactionManagerStrategy.endTX(PersistenceManager.java:1780)
      at org.jboss.mq.pm.jdbc3.PersistenceManager.add(PersistenceManager.java:460)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:38)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:131)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:414)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:390)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136)
      at org.jboss.mq.il.rmi.RMIServerIL.addMessage(RMIServerIL.java:134)
      at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:595)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      at org.jboss.mq.il.rmi.RMIServerIL_Stub.addMessage(Unknown Source)
      at org.jboss.mq.Connection.sendToServer(Connection.java:1020)
      at org.jboss.mq.SpySession.sendMessage(SpySession.java:1005)
      at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:265)
      at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:212)
      at com.hmsonline.drench.engine.FlowEngine.sendRemote(FlowEngine.java:1308)
      ... 5 more
      Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=redback.hmsonline.com/3992, BranchQual=, localId=3992] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
      at org.jboss.tm.TxManager.commit(TxManager.java:200)
      at org.jboss.mq.pm.jdbc3.PersistenceManager$TransactionManagerStrategy.endTX(PersistenceManager.java:1775)
      at org.jboss.mq.pm.jdbc3.PersistenceManager.add(PersistenceManager.java:460)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:38)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:131)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:414)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:390)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136)
      at org.jboss.mq.il.rmi.RMIServerIL.addMessage(RMIServerIL.java:134)
      at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      ... 1 more
      Caused by: javax.transaction.xa.XAException
      at com.inet.ora.p.if(Unknown Source)
      at com.inet.ora.p.commit(Unknown Source)
      at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.commit(XAManagedConnection.java:176)
      at org.jboss.tm.TransactionImpl$Resource.commit(TransactionImpl.java:2141)
      at org.jboss.tm.TransactionImpl.commitResources(TransactionImpl.java:1674)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:312)
      ... 20 more