1 2 Previous Next 16 Replies Latest reply on Nov 24, 2006 1:12 AM by Juha Moisio

    Could not enlist in transaction on entering meta-aware objec

    Juha Moisio Newbie

      Hi,


      I'm are using Sonic Software JCA Adapter for JBoss.
      When I'm trying to create XA Session I got error:

      10:57:11,316 ERROR [STDERR] javax.jms.JMSException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: Error enlisting resource in transaction=TransactionImple < jts, afd0212:8c43:456561b4:12 >)
      10:57:11,317 ERROR [STDERR] at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:72)
      10:57:11,317 ERROR [STDERR] at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:148)
      10:57:11,317 ERROR [STDERR] at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
      10:57:11,317 ERROR [STDERR] at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
      10:57:11,318 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:57:11,318 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      10:57:11,319 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10:57:11,319 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      10:57:11,319 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      10:57:11,319 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      10:57:11,320 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      10:57:11,320 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,320 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      10:57:11,320 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,320 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
      10:57:11,321 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,321 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      10:57:11,321 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
      10:57:11,321 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,321 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      10:57:11,322 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,322 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      10:57:11,322 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,322 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      10:57:11,322 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
      10:57:11,323 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,323 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      10:57:11,323 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,323 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      10:57:11,323 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      10:57:11,325 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
      10:57:11,325 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
      10:57:11,326 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
      10:57:11,327 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
      10:57:11,327 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
      10:57:11,327 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
      10:57:11,327 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
      10:57:11,328 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
      


      Server hangs (won't shutdown without killing) after this exception.

      Here is simple test code:

      package fi.logiasoftware.test;
      
      import java.util.HashMap;
      
      import javax.annotation.Resource;
      import javax.ejb.EJBException;
      import javax.ejb.Init;
      import javax.ejb.Local;
      import javax.ejb.Remote;
      import javax.ejb.Stateless;
      import javax.ejb.Timeout;
      import javax.ejb.Timer;
      import javax.ejb.TransactionAttribute;
      import javax.ejb.TransactionAttributeType;
      import javax.ejb.TransactionManagement;
      import javax.ejb.TransactionManagementType;
      import javax.jms.JMSException;
      
      import org.jboss.annotation.ejb.LocalBinding;
      import org.jboss.annotation.ejb.RemoteBinding;
      
      import com.sonicsw.sonicmq.j2ee.jmsra.sonicra.SonicConnection;
      
      @Stateless
      @RemoteBinding(jndiBinding = "Test")
      @LocalBinding(jndiBinding = "TestLocal")
      @Remote(Test.class)
      @Local(Test.class)
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      public class TestBean extends MessageSenderBase implements Test {
      
      
       private @Resource
       javax.ejb.TimerService timerService;
      
       private void thisWillFail() throws JMSException {
       System.out.println("I will fail");
       throw new JMSException("thisWillFail");
       }
      
       private void thisWillSucceed() {
       System.out.println("I did succeed");
       }
      
       public void doSomething() {
       doSomethingElse();
       }
      
       @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
       private void doSomethingElse() {
      
       SonicConnection conn = null;
      
       HashMap<Object, Object> m = new HashMap<Object,Object>();
       m.put("property1", "value1");
      
       try {
      
       conn = openConnection();
       sendMessage(conn, "Test message", m, "SonicJMS/Queues/Queue20");
       //thisWillFail();
       thisWillSucceed();
       } catch (JMSException e) {
       e.printStackTrace();
       throw new EJBException(e);
       } finally {
       shutdownConnection(conn);
       }
      
       }
      
      }
      


      package fi.logiasoftware.test;
      
      import java.util.HashMap;
      import java.util.Iterator;
      import java.util.Set;
      
      import javax.annotation.Resource;
      import javax.ejb.EJBException;
      import javax.ejb.SessionContext;
      import javax.jms.DeliveryMode;
      import javax.jms.JMSException;
      import javax.jms.MessageProducer;
      import javax.jms.Queue;
      import javax.jms.Session;
      import javax.jms.TextMessage;
      import javax.jms.XAConnection;
      import javax.jms.XASession;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;
      
      import org.apache.log4j.Logger;
      
      
      import com.sonicsw.sonicmq.j2ee.jmsra.sonicra.SonicConnection;
      import com.sonicsw.sonicmq.j2ee.jmsra.sonicra.SonicConnectionFactory;
      
      public class MessageSenderBase {
      
       private final static String CONNECTION_FACTORY = "java:/SonicJMS/default/XAQueueConnectionFactory";
      
       public final static int UNKNOWN_TXN_TYPE = -1;
      
       public final static int XA_TXN_TYPE = 1;
      
       public final static int NON_XA_TXN_TYPE = 2;
      
       private int m_txnType = UNKNOWN_TXN_TYPE;
      
       protected XASession xaSession = null;
       protected Session session = null;
      
       protected @Resource
       SessionContext sessionCtx;
      
       Logger logger = Logger
       .getLogger("fi.logiasoftware.messageserver.services.backend.MessageSenderBase");
      
       public void sendTextMessage(String msg, HashMap properties,
       SonicConnection conn, javax.jms.Destination destination) throws JMSException {
       MessageProducer producer = null;
      
       producer = session.createProducer(destination);
       TextMessage textMessage = session.createTextMessage();
       textMessage.setJMSDeliveryMode(DeliveryMode.PERSISTENT);
       textMessage.setJMSExpiration(0);
       textMessage.setBooleanProperty("JMS_SonicMQ_preserveUndelivered", true);
       textMessage.setBooleanProperty("JMS_SonicMQ_notifyUndelivered", true);
      
       Set set = properties.keySet();
       Iterator it = set.iterator();
      
       logger.debug("Setting properties");
       while (it.hasNext()) {
      
       String propertyName = (String) it.next();
      
       Object o = properties.get(propertyName);
      
       if (o instanceof String) {
      
       String propertyValue = (String) properties.get(propertyName);
       textMessage.setStringProperty(propertyName, propertyValue);
      
       } else if (o instanceof Integer) {
      
       Integer propertyValue = (Integer) properties.get(propertyName);
       textMessage.setIntProperty(propertyName, propertyValue
       .intValue());
       } else if (o instanceof Boolean) {
       Boolean propertyValue = (Boolean) properties.get(propertyName);
       textMessage.setBooleanProperty(propertyName, propertyValue);
       }
       }
      
       logger.debug("Setting text");
       textMessage.setText(msg);
      
       logger.debug("sending message");
       producer.send(textMessage);
      
       }
      
       private int getAppServerTxnType() {
       // Only need to determine this once per bean activation. It will not
       // change unless the bean is redeployed with a different deployment
       // descriptor.
       if (sessionCtx != null && m_txnType == UNKNOWN_TXN_TYPE) {
       try {
       sessionCtx.getRollbackOnly();
       m_txnType = XA_TXN_TYPE;
       } catch (IllegalStateException ise) {
       m_txnType = NON_XA_TXN_TYPE;
       }
       }
       return m_txnType;
       }
      
       private Queue getQueue(String jndiName) {
       try {
       InitialContext iniCtx = new InitialContext();
       Queue q = (Queue) iniCtx.lookup(jndiName);
       return q;
       } catch (NamingException ne) {
       throw new EJBException(ne);
       }
       }
      
       public void sendMessage(SonicConnection conn, String msg, HashMap properties, String queueName)
       throws JMSException {
       Queue queue = getQueue(queueName);
       sendTextMessage(msg, properties, conn, queue);
       }
      
       public SonicConnection openConnection() {
       SonicConnection conn = null;
      
       InitialContext iniCtx = null;
       Object ref = null;
      
       try {
       iniCtx = new InitialContext();
       ref = iniCtx.lookup(CONNECTION_FACTORY);
      
       } catch (NamingException e) {
       throw new EJBException(e);
       }
      
       try {
      
       SonicConnectionFactory cf = (SonicConnectionFactory) ref;
       conn = (SonicConnection) cf.getConnection();
       conn.start();
      
       int txnType = getAppServerTxnType();
      
       logger.debug("Checking server transaction type");
      
       if (txnType == XA_TXN_TYPE && conn instanceof XAConnection) {
       logger.debug("Creating xasession");
       xaSession = ((XAConnection) conn).createXASession();
       session = xaSession.getSession();
      
       logger.debug("XAsession created");
       } else {
       // Create the JMS session directly from the connection
       session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
       }
      
       if (conn == null)
       throw new EJBException("could not connect to JMS queue: "
       + CONNECTION_FACTORY + ", message cannot be sent and will be lost!");
      
       return conn;
      
       } catch(JMSException e) {
       e.printStackTrace();
       throw new EJBException(e);
       } finally {
       if(conn != null) {
       try {
       conn.close();
       } catch (JMSException e) {
       e.printStackTrace();
       }
       }
       }
      
       }
      
       public void shutdownConnection(SonicConnection conn) {
      
       Logger logger = Logger
       .getLogger("fi.logiasoftware.messageserver.services.backend.MessageSenderBean");
      
       if (conn != null) {
      
       int txnType = getAppServerTxnType();
      
       try {
      
       if(session != null)
       session.close();
      
       if (txnType == XA_TXN_TYPE && conn instanceof XAConnection) {
       if(xaSession != null)
       xaSession.close();
       }
      
       conn.close();
      
      
       } catch (JMSException jmse) {
       logger.warn("Could not close JMS connection. Reason: "
       + jmse.getMessage());
       }
       }
      
       }
      
      
      }
      
      


        • 1. Re: Could not enlist in transaction on entering meta-aware o
          Kevin Conner Master

          Which version of the AppServer are you using? Which version of TS?

          Are there any more exceptions in the server log?

          • 2. Re: Could not enlist in transaction on entering meta-aware o
            Juha Moisio Newbie

            JBoss 4.0.5GA (EJB3 profile) installed from sources.
            JBossTS 4.2.2 full.

            No other exception appeared in server log.

            Br,

            Juha

            • 3. Re: Could not enlist in transaction on entering meta-aware o
              Kevin Conner Master

              The stack trace should also contain a trace for the exception which caused the error, is this not present?

              Do you see any following lines containing something similar to 'Caused by:'?

              • 4. Re: Could not enlist in transaction on entering meta-aware o
                Juha Moisio Newbie

                This is all I got. Sonic JCA adapter doesn't tell anything else.

                ##java fi.logiasoftware.test.TestClient
                Exception in thread "main" javax.ejb.EJBException: javax.jms.JMSException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: Error enlisting resource in transaction=TransactionImple < jts, afd0212:966c:4565ab94:e >)
                 at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:167)
                 at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
                 at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
                 at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
                 at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
                 at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
                 at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
                 at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
                Caused by: javax.jms.JMSException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: Error enlisting resource in transaction=TransactionImple < jts, afd0212:966c:4565ab94:e >)
                 at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:72)
                 at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:150)
                 at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
                 at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
                 at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
                 at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
                 at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
                 at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
                 at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
                 at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
                 at org.jboss.remoting.Client.invoke(Client.java:525)
                 at org.jboss.remoting.Client.invoke(Client.java:488)
                 at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
                 at $Proxy0.doSomething(Unknown Source)
                 at fi.logiasoftware.test.TestClient.<init>(TestClient.java:28)
                 at fi.logiasoftware.test.TestClient.main(TestClient.java:11)
                


                • 5. Re: Could not enlist in transaction on entering meta-aware o
                  Kevin Conner Master

                  Can you turn on trace logging for the following: -
                  org.jboss.resource.connectionmanager.TxConnectionManager

                  • 6. Re: Could not enlist in transaction on entering meta-aware o
                    Juha Moisio Newbie

                    Yes I can... I'm not sure how to do it, so can you provide me an example?

                    -Juha-

                    • 7. Re: Could not enlist in transaction on entering meta-aware o
                      Juha Moisio Newbie

                      Here is the trace.

                      XAResourceWrapper.start: GlobalId=1-afd0212:9896:4565be9f:1a, BranchQual=afd0212:9896:4565be9f:1e,TMNOFLAGS
                      2006-11-23 17:37:47,556 DEBUG [Sonic Resource Adapter for JCA] SocketServerInvokerThread-10.253.2.18-0 XAResource=19374552
                      XAResourceWrapper.enterTransaction: GlobalId=1-afd0212:9896:4565be9f:1a, BranchQual=afd0212:9896:4565be9f:1e
                      2006-11-23 17:37:47,611 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Failed to enlist resource org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=TxSync13732480{tx=TransactionImple < jts, afd0212:9896:4565be9f:1a > wasTrackByTx=false enlisted=false}] java.lang.IncompatibleClassChangeError
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR$RecoverableParsedIOR.<init>(RecoverIOR.java:49)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR$RecoverableParsedIOR.<init>(RecoverIOR.java:45)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR.newObjectKey(RecoverIOR.java:112)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCManager.makeRC(JacOrbRCManager.java:122)
                       at com.arjuna.ats.internal.jts.recovery.recoverycoordinators.GenericRecoveryCreator.create(GenericRecoveryCreator.java:142)
                       at com.arjuna.ats.internal.jts.recovery.RecoveryCreator.createRecoveryCoordinator(RecoveryCreator.java:111)
                       at com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.register_resource(ArjunaTransactionImple.java:867)
                       at com.arjuna.ats.internal.jts.ControlWrapper.register_resource(ControlWrapper.java:354)
                       at com.arjuna.ats.jts.extensions.AtomicTransaction.registerResource(AtomicTransaction.java:548)
                       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.enlistResource(TransactionImple.java:841)
                       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.enlistResource(TransactionImple.java:488)
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:757)
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:548)
                       at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:68)
                       at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:150)
                       at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
                       at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                       at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
                       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
                       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
                       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
                       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
                       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
                       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
                      2006-11-23 17:37:47,613 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Check enlisted org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=null] threadTx=TransactionImple < jts, afd0212:9896:4565be9f:1a >
                      2006-11-23 17:37:47,613 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Error enlisting resource in transaction=TransactionImple < jts, afd0212:9896:4565be9f:1a > org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=null]
                      2006-11-23 17:37:47,613 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Could not enlist in transaction on entering meta-aware object! org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=null]
                      javax.transaction.SystemException: Error enlisting resource in transaction=TransactionImple < jts, afd0212:9896:4565be9f:1a >
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:731)
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:561)
                       at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:68)
                       at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:150)
                       at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
                       at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                       at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
                       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
                       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
                       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
                       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
                       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
                       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
                      Caused by: java.lang.IncompatibleClassChangeError
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR$RecoverableParsedIOR.<init>(RecoverIOR.java:49)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR$RecoverableParsedIOR.<init>(RecoverIOR.java:45)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.RecoverIOR.newObjectKey(RecoverIOR.java:112)
                       at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCManager.makeRC(JacOrbRCManager.java:122)
                       at com.arjuna.ats.internal.jts.recovery.recoverycoordinators.GenericRecoveryCreator.create(GenericRecoveryCreator.java:142)
                       at com.arjuna.ats.internal.jts.recovery.RecoveryCreator.createRecoveryCoordinator(RecoveryCreator.java:111)
                       at com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.register_resource(ArjunaTransactionImple.java:867)
                       at com.arjuna.ats.internal.jts.ControlWrapper.register_resource(ControlWrapper.java:354)
                       at com.arjuna.ats.jts.extensions.AtomicTransaction.registerResource(AtomicTransaction.java:548)
                       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.enlistResource(TransactionImple.java:841)
                       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.enlistResource(TransactionImple.java:488)
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:757)
                       at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:548)
                       ... 42 more
                      2006-11-23 17:37:47,616 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] delisting org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=null]
                      2006-11-23 17:37:47,616 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Disconnected isManagedConnectionFree=true cl=org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@f274b4[state=NORMAL mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@190690e handles=0 lastUse=1164296267525 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1cbf6bb context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b3a74d xaResource=com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper@127a1d8 txSync=null]
                      2006-11-23 17:37:47,616 DEBUG [Sonic Resource Adapter for JCA] Cleaning up session
                      2006-11-23 17:37:47,617 ERROR [STDERR] javax.jms.JMSException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: Error enlisting resource in transaction=TransactionImple < jts, afd0212:9896:4565be9f:1a >)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:72)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at fi.logiasoftware.test.MessageSenderBase.openConnection(MessageSenderBase.java:150)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:59)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      2006-11-23 17:37:47,618 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                      2006-11-23 17:37:47,619 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                      2006-11-23 17:37:47,620 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
                      2006-11-23 17:37:47,621 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
                      2006-11-23 17:37:47,622 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
                      2006-11-23 17:37:47,622 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
                      2006-11-23 17:37:47,622 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
                      2006-11-23 17:37:47,623 DEBUG [Sonic Resource Adapter for JCA] Reference count is now: 1 After free
                      2006-11-23 17:37:47,934 DEBUG [org.jboss.remoting.transport.socket.ServerThread] begin thread wait
                      2006-11-23 17:39:31,455 INFO [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Thu, 23 Nov 2006 17:39:31>
                      2006-11-23 17:39:31,455 INFO [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
                      2006-11-23 17:39:31,455 INFO [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
                      2006-11-23 17:39:31,456 INFO [com.arjuna.ats.jts.logging.loggerI18N] [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_3] [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_3] - TopLevelTransactionRecoveryModule First Pass
                      2006-11-23 17:39:31,456 INFO [com.arjuna.ats.jts.logging.logger] TransactionRecoveryModule.periodicWorkFirstPass()
                      2006-11-23 17:39:31,456 INFO [com.arjuna.ats.jts.logging.loggerI18N] [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_3] [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_3] - ServerTransactionRecoveryModule - First Pass
                      2006-11-23 17:39:31,456 INFO [com.arjuna.ats.jts.logging.logger] TransactionRecoveryModule.periodicWorkFirstPass()
                      



                      -Juha-




                      • 8. Re: Could not enlist in transaction on entering meta-aware o
                        Kevin Conner Master

                        This exception suggests that you are using the wrong jacorb jar. Did you replace the jar with the one we distribute?

                        • 9. Re: Could not enlist in transaction on entering meta-aware o
                          Juha Moisio Newbie

                          Yeah I think so :) I try to copy it again and run my test.

                          -Juha-

                          • 10. Re: Could not enlist in transaction on entering meta-aware o
                            Kevin Conner Master

                            Okay, great.

                            The IncompatibleClassChangeError suggests that the super class (a jacorb class) no longer has the constructor that we are using.

                            • 11. Re: Could not enlist in transaction on entering meta-aware o
                              Juha Moisio Newbie

                              Sorry.. It was my mistake (again)...I had problems to install JBoss TS cause
                              I had used default server when I installed JBoss... Today I copied all
                              jars from build/output/.../all/lib to my server. Before that I had already copied jacorb.jar from JBoss TS. So the right version of jacorb.jar was over written. :(.

                              Now my sample code runs without errors but nothing appears in JMS Queue.
                              Can you see any coding mistakes in my code? When it should commit the transaction?

                              Br,

                              Juha Moisio


                              • 12. Re: Could not enlist in transaction on entering meta-aware o
                                Juha Moisio Newbie

                                And now I'm getting same error as I got with local JTA.

                                2006-11-23 21:19:39,585 DEBUG [Sonic Resource Adapter for JCA] UNABLE to find connections in available connections
                                2006-11-23 21:19:40,458 DEBUG [Sonic Resource Adapter for JCA] New connection, reference count is: 1
                                2006-11-23 21:19:40,485 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] Checking server transaction type
                                2006-11-23 21:19:40,486 INFO [STDOUT] Checking server transaction type
                                2006-11-23 21:19:40,486 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] Creating xasession
                                2006-11-23 21:19:40,486 INFO [STDOUT] Creating xasession
                                2006-11-23 21:19:40,490 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] subject: null
                                2006-11-23 21:19:40,490 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] getManagedConnection trackByTx=false tx=null
                                2006-11-23 21:19:40,497 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: $
                                2006-11-23 21:19:40,497 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1164310030497, new$
                                2006-11-23 21:19:40,548 DEBUG [Sonic Resource Adapter for JCA] Reference Count is now: 2
                                2006-11-23 21:19:40,557 DEBUG [Sonic Resource Adapter for JCA] SocketServerInvokerThread-10.253.2.18-0 XAResource=14797428
                                XAResourceWrapper CTOR, managed connection=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection@3fcfb
                                2006-11-23 21:19:40,557 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Pre-enlist: org.jboss.resource.connectionmanager.TxConnectionManag$
                                2006-11-23 21:19:40,576 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Get synchronizer org.jboss.resource.connectionmanager.TxConnection$
                                2006-11-23 21:19:40,580 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Enlisting resource org.jboss.resource.connectionmanager.TxConnecti$
                                2006-11-23 21:19:40,587 DEBUG [Sonic Resource Adapter for JCA] SocketServerInvokerThread-10.253.2.18-0 XAResource=14797428
                                XAResourceWrapper.start: GlobalId=1-afd0212:9bbb:4565f438:e, BranchQual=afd0212:9bbb:4565f438:12,TMNOFLAGS
                                2006-11-23 21:19:40,587 DEBUG [Sonic Resource Adapter for JCA] SocketServerInvokerThread-10.253.2.18-0 XAResource=14797428
                                XAResourceWrapper.enterTransaction: GlobalId=1-afd0212:9bbb:4565f438:e, BranchQual=afd0212:9bbb:4565f438:12
                                2006-11-23 21:19:40,687 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Enlisted resource org.jboss.resource.connectionmanager.TxConnectio$
                                2006-11-23 21:19:40,687 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Check enlisted org.jboss.resource.connectionmanager.TxConnectionMa$
                                2006-11-23 21:19:40,688 INFO [STDOUT] XAsession created
                                2006-11-23 21:19:40,688 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] XAsession created
                                2006-11-23 21:19:40,745 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] Setting properties
                                2006-11-23 21:19:40,745 INFO [STDOUT] Setting properties
                                2006-11-23 21:19:40,745 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] Setting text
                                2006-11-23 21:19:40,746 DEBUG [fi.logiasoftware.messageserver.services.backend.MessageSenderBase] sending message
                                2006-11-23 21:19:40,754 INFO [STDOUT] I did succeed
                                2006-11-23 21:19:40,770 DEBUG [Sonic Resource Adapter for JCA] Connection Closed event generated
                                2006-11-23 21:19:40,770 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] connectionClosed called mc=com.sonicsw.sonicmq.j2ee.jmsra.impl.JMS$
                                2006-11-23 21:19:40,770 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] unregisterConnection: 0 handles left
                                2006-11-23 21:19:40,770 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] isManagedConnectionFree=true mc=com.sonicsw.sonicmq.j2ee.jmsra.imp$
                                2006-11-23 21:19:40,770 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] delisting org.jboss.resource.connectionmanager.TxConnectionManager$
                                2006-11-23 21:19:40,771 DEBUG [Sonic Resource Adapter for JCA] SocketServerInvokerThread-10.253.2.18-0 XAResource=14797428
                                XAResourceWrapper.end: GlobalId=1-afd0212:9bbb:4565f438:e, BranchQual=afd0212:9bbb:4565f438:12,TMSUSPEND
                                2006-11-23 21:19:40,774 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.jts.xaerror] [com.arjuna.ats.internal.jta.tr$
                                2006-11-23 21:19:40,775 ERROR [org.jboss.resource.connectionmanager.TxConnectionManager] Error while closing connection handle!
                                javax.resource.ResourceException: Failure to delist resource: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1b2bb77[st$
                                 at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.delist(TxConnectionManager.java:582)
                                 at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:622)
                                 at com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSConnectionEventListener.sendEvent(JMSConnectionEventListener.java:78)
                                 at com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionManagedConnection.sendEvent(JMSSessionManagedConnection.java:380)
                                 at com.sonicsw.sonicmq.j2ee.jmsra.impl.JMSSessionAdapter.close(JMSSessionAdapter.java:164)
                                 at fi.logiasoftware.test.MessageSenderBase.shutdownConnection(MessageSenderBase.java:191)
                                 at fi.logiasoftware.test.TestBean.doSomethingElse(TestBean.java:68)
                                 at fi.logiasoftware.test.TestBean.doSomething(TestBean.java:46)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                                


                                -Juha-


                                • 13. Re: Could not enlist in transaction on entering meta-aware o
                                  Juha Moisio Newbie

                                  Hi,

                                  Everything seems to work ok, if I remove
                                  finally { shutdownConnection(conn); }
                                  from doSomethingElse();

                                  Does Jboss really take care of closing xasession,
                                  session and connection?

                                  Br,

                                  Juha

                                  • 14. Re: Could not enlist in transaction on entering meta-aware o
                                    Weston M. Price Master

                                    The underlying connection will be closed by the CacheConnectionManager if you do not close it. This is a debug level feature and you are generally encouraged to close your own resources.

                                    1 2 Previous Next