4 Replies Latest reply on Dec 5, 2006 5:30 AM by Mark Little

    java.lang.IllegalStateException : Invalid transaction

    Juha Moisio Newbie

      Any ideas what might cause this?
      This error occured during onMessage in MDB listening SonicMQ queue using Sonic JCA Adapter.

      2006-12-05 11:20:31,787 DEBUG [Sonic Resource Adapter for JCA] RequestProcessor-13211 XAResource=1364611414
      XAResourceWrapper.prepare: GlobalId=1--3f3db8c2:f4c6:45752089:12741, BranchQual=-3f3db8c2:f4c6:45752089:12745
      2006-12-05 11:20:31,788 ERROR [Sonic Resource Adapter for JCA] EXCEPTION: SonicServerSession.onMessage() cannot d
      eliver message progress.message.jimpl.TextMessage@519a519a javax.resource.ResourceException java.lang.IllegalStat
      eException: [com.arjuna.ats.internal.jta.transaction.jts.invalidtx2] [com.arjuna.ats.internal.jta.transaction.jts
      .invalidtx2] Invalid transaction.
      javax.resource.ResourceException: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.jts.i
      nvalidtx2] [com.arjuna.ats.internal.jta.transaction.jts.invalidtx2] Invalid transaction.
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:232)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:134)
       at $Proxy284.afterDelivery(Unknown Source)
       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.onMessage(SonicServerSession.java:177)
       at progress.message.jimpl.Session.eU_(Unknown Source)
       at progress.message.jimpl.Session.run(Unknown Source)
       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.run(SonicServerSession.java:199)
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
       at java.lang.Thread.run(Thread.java:797)
      Caused by:
      java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.jts.invalidtx2] [com.arjuna.ats.interna
      l.jta.transaction.jts.invalidtx2] Invalid transaction.
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.commitAndDisassociate(TransactionImple.ja
      va:1293)
       at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.commit(BaseTransaction.java:165)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.endTransaction(MessageInflowLocalProxy.java:433)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.finish(MessageInflowLocalProxy.java:312)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:228)
       ... 10 more
      2006-12-05 11:20:31,868 DEBUG [Sonic Resource Adapter for JCA] Reference Count is now: 3
      2006-12-05 11:20:31,868 DEBUG [Sonic Resource Adapter for JCA] Added reference: 3
      2006-12-05 11:20:31,868 DEBUG [Sonic Resource Adapter for JCA] FOUND MATCHING SESSION
      2006-12-05 11:20:31,870 DEBUG [Sonic Resource Adapter for JCA] Timer-14 XAResource=1364611414
      XAResourceWrapper.start: GlobalId=1--3f3db8c2:f4c6:45752089:12761, BranchQual=-3f3db8c2:f4c6:45752089:12765,TMNOF
      LAGS
      2006-12-05 11:20:31,870 DEBUG [Sonic Resource Adapter for JCA] Timer-14 XAResource=1364611414
      XAResourceWrapper.enterTransaction: GlobalId=1--3f3db8c2:f4c6:45752089:12761, BranchQual=-3f3db8c2:f4c6:45752089:
      12765
      2006-12-05 11:20:31,870 DEBUG [Sonic Resource Adapter for JCA] Timer-14 XAResource=1364611414
      in XAResourceWrapper enterTransaction: waiting for transaction to complete on another threadGlobalId=1--3f3db8c2:
      f4c6:45752089:12761, BranchQual=-3f3db8c2:f4c6:45752089:12765
      2006-12-05 11:20:31,911 DEBUG [Sonic Resource Adapter for JCA] RequestProcessor-13211 XAResource=1364611414 prepa
      re result = TMNOFLAGS GlobalId=1--3f3db8c2:f4c6:45752089:12741, BranchQual=-3f3db8c2:f4c6:45752089:12745
      2006-12-05 11:20:32,029 DEBUG [Sonic Resource Adapter for JCA] RequestProcessor-13194 XAResource=1364611414
      XAResourceWrapper.commit: GlobalId=1--3f3db8c2:f4c6:45752089:12741, BranchQual=-3f3db8c2:f4c6:45752089:12745,fals
      e
      



      -Juha-