3 Replies Latest reply on Apr 13, 2006 9:44 AM by topicfun

    Could not get XAResource from ManagedConnection!

    topicfun Newbie

      Hi!

      At big load I always got this error message. I can't understand it because I don't use XA datasource only one simple oracle-ds.xml.
      The OrderingBackupBean is a simple entity bean.

      I have searched via net but I didn't find any solution for it only if the XA datasource is used. (Oracle XA config, pad...and so on).
      As far as I see I don't get this error message for all entity beans only some...

      Do I need to modify some other xml file in Jboss?

      Thanks,
      topicfun


      11:22:13,002 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2579, BranchQual=, localId=2579] timed out. status=STATUS_ACTIVE
      11:22:19,913 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2584, BranchQual=, localId=2584] timed out. status=STATUS_ACTIVE
      11:22:20,085 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2585, BranchQual=, localId=2585] timed out. status=STATUS_ACTIVE
      11:24:17,906 INFO [TxConnectionManager] Could not enlist in transaction on entering meta-aware object!
      javax.transaction.SystemException: Could not get XAResource from ManagedConnection!javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2529, BranchQual=, localId=2529]
      at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:441)
      at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:322)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:583)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:450)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
      at at.siemens.mma.iap.ordering.ejb.OrderingBackupBean.makeConnection(OrderingBackupBean.java:424)
      at at.siemens.mma.iap.ordering.ejb.OrderingBackupBean.selectByUser(OrderingBackupBean.java:802)
      at at.siemens.mma.iap.ordering.ejb.OrderingBackupBean.ejbFindByUser(OrderingBackupBean.java:390)
      at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)

        • 1. Re: Could not get XAResource from ManagedConnection!
          jaikiran pai Master

           

          "topicfun" wrote:


          11:22:13,002 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2579, BranchQual=, localId=2579] timed out. status=STATUS_ACTIVE
          11:22:19,913 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2584, BranchQual=, localId=2584] timed out. status=STATUS_ACTIVE
          11:22:20,085 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/2585, BranchQual=, localId=2585] timed out. status=STATUS_ACTIVE


          Looks like the transactions have timedout and hence MARKED_FOR_ROLLBACK. Later on whenever any operation is done in context of this transaction which is marked for rollback, the exception gets thrown

          • 2. Re: Could not get XAResource from ManagedConnection!
            topicfun Newbie


            I have increased the transaction timeout in jboss-service.xml and after I didn't get this error!

            this XA resource was very confusing for me... I thought there is some XA datasource is also used beside of my oracle-ds.xml...


            Thanks for you answer and for the perfect solution ;-) !!!!


            • 3. Re: Could not get XAResource from ManagedConnection!
              topicfun Newbie

              only one additional question....

              I have swiched on the trace for tm but I don't know how I can find out from the localID to which methods it is related in my code???
              As far as I know if execution of method begins one transaction instance is created with an unique id....

              2006-04-13 13:17:02,366 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=iacapp3/5345, BranchQual=, localId=5345]

              Thanks,
              Zoltán