0 Replies Latest reply on Jul 22, 2002 6:03 PM by Paolo

    LocalTxConnectionManager

    Paolo Newbie

      I wrote my own JCA Resource adapter and configured it to use the LocalTxConnectionManager the -service.xml file. The resource managed to deploys just fine. But whenever I fire up a session bean in order to do a lookup on the resource I can get an instance of the resource and use it but this throw exception is thrown each time I do the lookup:

      17:06:29,265 WARN [TxCapsule] XAException: tx=XidImpl [FormatId=257, GlobalId=L
      OKI//1, BranchQual=] errorCode=XA_UNKNOWN(0)
      javax.transaction.xa.XAException: wrong xid in rollback: expected: null, got: Xi
      dImpl [FormatId=257, GlobalId=LOKI//1, BranchQual=1]
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalCo
      nnectionEventListener.rollback(LocalTxConnectionManager.java:640)
      at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1721)
      at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:437)
      at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:180)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:129)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
      ner.java:313)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      362)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      60)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:701)
      at java.lang.Thread.run(Thread.java:536)

      Any ideas on how to prevent this?

      thanks,
      -Paolo