<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    org.jboss.messaging.core.impl.tx.TransactionException: Cannot find entry forxid:MessagingXid
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/prahlads">prahlad reddy</a> in <i>JBoss Transactions Development</i> - <a href="http://community.jboss.org/message/579465#579465">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>In production server we have encountered this exception, Needmore information </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Exception Stack Trace :: </p><p>[2010-07-21 06:02:10,139] [ERROR][org.jboss.messaging.util.ExceptionUtil]ConnectionEndpoint[au-s6wk5vbg-1-3add5vbg-sqfpjn-v10t2a] sendTransaction[v8f-zi7d <br/>nvbg-1-3add5vbg-sqfpjn-v10t2a] <br/>org.jboss.messaging.core.impl.tx.TransactionException: Cannot find entry forxid:MessagingXid (36214490bq:97.54.53.48.48.52.51.58.101.98.49.53.58.52.99.52.5 <br/>3.102.98.50.102.58.97.50.57.99.57 formatID:131075gtxid:103.98.115.108.105.118.101.49.45.97.54.53.48.48.52.51.58.101.98.49.53.58.52.99.52.53.102.98.50.102.58<br/>.97.50.56.48.48 <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.messaging.core.impl.tx.TransactionRepository.getPreparedTx(TransactionRepository.java:223)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:526)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvi<br/>sed.java:101) <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650<br/>789275322226.java)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>From googling I have get the snippet of code for TransactoinRepository.java for Jboss application server</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Snippet of code of TransactoinRepository.java from jboss::</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>public Transaction getPreparedTx(Xid xid) throws Exception</p><p>&#160; 218&#160;&#160;&#160;&#160;&#160; {</p><p>&#160; 219&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Transaction tx =(Transaction)map.get(xid);</p><p>&#160; 220&#160;&#160; </p><p>&#160; 221&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (tx == null)</p><p>&#160; 222&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p><p>&#160; 223&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; throw newTransactionException("Cannot find entry for xid:" + xid);</p><p>&#160; 224&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160; 225&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (tx.getState() !=Transaction.STATE_PREPARED)</p><p>&#160; 226&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p><p>&#160; 227&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; throw newTransactionException("Transaction with xid " + xid + " is not inprepared state");</p><p>&#160; 228&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160; 229&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return tx;</p><p>&#160; 230&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Exception happened at 223 line no , my question in above code Transaction object getting from map with xid</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Transactiontx = (Transaction)map.get(xid);</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Object returned from map as null for the same reason above exception encountered in my case .</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What are the possible for occurring this kind of exception, need more information about the exception.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/579465#579465">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Transactions Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>