JBoss Community

org.jboss.messaging.core.impl.tx.TransactionException: Cannot find entry forxid:MessagingXid

created by prahlad reddy in JBoss Transactions Development - View the full discussion

In production server we have encountered this exception, Needmore information


Exception Stack Trace ::

[2010-07-21 06:02:10,139] [ERROR][org.jboss.messaging.util.ExceptionUtil]ConnectionEndpoint[au-s6wk5vbg-1-3add5vbg-sqfpjn-v10t2a] sendTransaction[v8f-zi7d
org.jboss.messaging.core.impl.tx.TransactionException: Cannot find entry forxid:MessagingXid (36214490bq: formatID:131075gtxid:
        at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650



From googling I have get the snippet of code for TransactoinRepository.java for Jboss application server


Snippet of code of TransactoinRepository.java from jboss::


public Transaction getPreparedTx(Xid xid) throws Exception

  218      {

  219         Transaction tx =(Transaction)map.get(xid);


  221         if (tx == null)

  222         {

  223            throw newTransactionException("Cannot find entry for xid:" + xid);

  224         }

  225         if (tx.getState() !=Transaction.STATE_PREPARED)

  226         {

  227            throw newTransactionException("Transaction with xid " + xid + " is not inprepared state");

  228         }

  229         return tx;

  230      }


Exception happened at 223 line no , my question in above code Transaction object getting from map with xid

            Transactiontx = (Transaction)map.get(xid);


Object returned from map as null for the same reason above exception encountered in my case .



What are the possible for occurring this kind of exception, need more information about the exception.

Reply to this message by going to Community

Start a new discussion in JBoss Transactions Development at Community