2 Replies Latest reply on May 31, 2011 2:21 AM by nageshwararm

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


      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.