1 Reply Latest reply on May 30, 2002 6:47 AM by Chris Harris

    Cannot enlist in the transaction because the trans...What do

    Jim Cozens Newbie

      I wonder if anyone could shed some light on what the following exception means and why I might be getting it. I'm running jboss 2.4.3 – the latest Opta SQLServer driver. Any help is greatly appreciated.

      It seems to be thrown when a Stateless SB using "NotSupported" tranx invokes a find method on a BMP Enity bean ("ejbFindByLoginCredentials" method).

      Thx

      XAException: tx=XidImpl [FormatId=257, GlobalId=twang_test1//2, BranchQual=] errorCode=XA_UNKNOWN(0)
      javax.transaction.xa.XAException: [TWANG_TEST1]Cannot enlist in the transaction because the transaction does not exist.
      at com.inet.tds.m.if(Unknown Source)
      at com.inet.tds.m.start(Unknown Source)
      at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1087)
      at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:614)
      at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:111)
      at org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory.java:290)
      at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:566)
      at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:538)
      at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178)
      at pogo.twang.sql.ServiceLocator.getConnection(ServiceLocator.java:89)
      at pogo.twang.sql.ServiceLocator.getConnection(ServiceLocator.java:43)
      at pogo.twang.subject.pogouser.ejb.PogoUserEJB.ejbFindByLoginCredentials(PogoUserEJB.java:193)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:474)
      at org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPersistenceManager.java:227)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:594)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:843)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:231)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:154)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:108)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)


      Here's my pool info:


      com.inet.tds.XDataSource
      TWANG_POOL
      host=localhost; database=COMPTON
      jboss
      jboss
      1200000
      50
      400
      false
      false
      false
      true
      120000
      1800000
      false
      false
      1.0