<!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">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;">
    enabling org.jboss.ejb3 tracing causes ajuna error : The transaction is not active!
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/cullendw">Daniel Cullender</a> in <i>EJB 3.0 Development</i> - <a href="http://community.jboss.org/message/545043#545043">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We are using jboss 4.2.3 and we noticed a really bizarre bug. When we enable tracing for org.jboss.ejb3 in the jboss-log4j.xml file with the following entry:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div id="_mcePaste">&#160;&#160; &lt;category name="org.jboss.ejb3"&gt;</div><div id="_mcePaste">&#160;&#160;&#160;&#160;&#160; &lt;priority value="TRACE"/&gt;</div><div id="_mcePaste">&#160;&#160; &lt;/category&gt;</div><div> </div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We start getting this arjuna exception every time we put a message on our topic. It seems like the transaction changes mid transaction, causing an inconsistent state which arjuna does not like : </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><p>12:10:06,247 WARN&#160; [MessageInflowLocalProxy] Current transaction TransactionImple &lt; ac, BasicAction: -53ec9f29:d858:4bfe44ad:ca2 status: ActionStatus.RUNNING &gt; is not the expected transaction.</p><p>12:10:06,247 WARN&#160; [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_34] - End called on already committed atomic action -53ec9f29:d858:4bfe44ad:434</p><p>12:10:06,247 ERROR [JmsServerSession] Unexpected error delivering message org.jboss.mq.SpyObjectMessage {</p><p>Header { </p><p>&#160;&#160; jmsDestination&#160; : TOPIC.XXXXXX</p><p>&#160;&#160; jmsDeliveryMode : 1</p><p>&#160;&#160; jmsExpiration&#160;&#160; : 1274955064906</p><p>&#160;&#160; jmsPriority&#160;&#160;&#160;&#160; : 4</p><p>&#160;&#160; jmsMessageID&#160;&#160;&#160; : ID:2-12749550049061</p><p>&#160;&#160; jmsTimeStamp&#160;&#160;&#160; : 1274955004906</p><p>&#160;&#160; jmsCorrelationID: null</p><p>&#160;&#160; jmsReplyTo&#160;&#160;&#160;&#160;&#160; : null</p><p>&#160;&#160; jmsType&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : null</p><p>&#160;&#160; jmsRedelivered&#160; : true</p><p>&#160;&#160; jmsProperties&#160;&#160; : {JMSXDeliveryCount=484, JMS_JBOSS_REDELIVERY_LIMIT=0, JMS_JBOSS_REDELIVERY_COUNT=483}</p><p>&#160;&#160; jmsPropReadWrite: false</p><p>&#160;&#160; msgReadOnly&#160;&#160;&#160;&#160; : true</p><p>&#160;&#160; producerClientId: ID:2</p><p>}</p><p>}</p><p>javax.resource.ResourceException: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!</p><p><span> </span>at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:232)</p><p><span> </span>at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:134)</p><p><span> </span>at $Proxy153.afterDelivery(Unknown Source)</p><p><span> </span>at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:183)</p><p><span> </span>at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:906)</p><p><span> </span>at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)</p><p><span> </span>at org.jboss.mq.SpySession.run(SpySession.java:323)</p><p><span> </span>at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)</p><p><span> </span>at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)</p><p><span> </span>at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)</p><p><span> </span>at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)</p><p><span> </span>at java.lang.Thread.run(Thread.java:619)</p><p>Caused by: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!</p><p><span> </span>at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1385)</p><p><span> </span>at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)</p><p><span> </span>at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)</p><p><span> </span>at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.endTransaction(MessageInflowLocalProxy.java:433)</p><p><span> </span>at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.finish(MessageInflowLocalProxy.java:312)</p><p><span> </span>at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:228)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any ideas why this is happening (or if a jira bug has been opened for this)?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We have other classes set to TRACE in a similar fashion which work 100%. The good news is that the trace is definitely activated for org.jboss.ejb3.</p><div> </div></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/545043#545043">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB 3.0 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>