2 Replies Latest reply on Dec 5, 2006 5:07 AM by Juha Moisio

    Failed to mark transaction as rollback only

    Juha Moisio Newbie

      Hi,

      Could someone tell me what is happened here?
      Can the reason for NPE be seen from this trace...?

      I would like to know, is it coming from my code or JBossTS... :I


      2006-12-04 18:31:38,491 DEBUG [Sonic Resource Adapter for JCA] RequestProcessor-9823 XAResource=775171636
      XAResourceWrapper.leaveTransaction: GlobalId=1--3f3db8c2:fee8:4574405f:cbe2, BranchQual=-3f3db8c2:fee8:4574405f:cbe6
      2006-12-04 18:31:38,584 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
      2006-12-04 18:31:38,585 ERROR [org.hibernate.util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < jts, -3f3db8c2:fee8:4574405f:cbe7 >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < jts, -3f3db8c2:fee8:4574405f:cbe7 >)
      2006-12-04 18:31:38,591 WARN [com.arjuna.ats.jts.logging.loggerI18N] [com.arjuna.ats.internal.jts.cwcommit] Failed to mark transaction as rollback only:
      org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x4000 minor code: E21 completed: No
       at com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.rollback_only(ArjunaTransactionImple.java:1156)
       at com.arjuna.ats.internal.jts.ControlWrapper.rollback_only(ControlWrapper.java:322)
       at com.arjuna.ats.internal.jts.ControlWrapper.preventCommit(ControlWrapper.java:168)
       at com.arjuna.ats.jts.extensions.AtomicTransaction.rollbackOnly(AtomicTransaction.java:771)
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.setRollbackOnly(TransactionImple.java:387)
       at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.setRollbackOnly(BaseTransaction.java:214)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:135)
       at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:432)
       at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:587)
       at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:647)
       at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:99)
       at fi.logiasoftware.messageserver.services.backend.mdbs.MessageListenerBean.getStepId(MessageListenerBean.java:163)
       at fi.logiasoftware.messageserver.services.backend.mdbs.MessageListenerBean.onMessage(MessageListenerBean.java:232)
       at sun.reflect.GeneratedMethodAccessor414.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:615)
       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.invokeInCallerTx(TxPolicy.java:126)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
       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.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
       at $Proxy279.onMessage(Unknown Source)
       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.onMessage(SonicServerSession.java:168)
       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)
      2006-12-04 18:31:38,632 WARN [com.arjuna.ats.jts.logging.loggerI18N] [com.arjuna.ats.internal.jts.cwcommit] Failed to mark transaction as rollback only:
      org.omg.CosTransactions.Unavailable: IDL:omg.org/CosTransactions/Unavailable:1.0
       at com.arjuna.ats.internal.jts.ControlWrapper.rollback_only(ControlWrapper.java:344)
       at com.arjuna.ats.internal.jts.ControlWrapper.preventCommit(ControlWrapper.java:168)
       at com.arjuna.ats.jts.extensions.AtomicTransaction.rollbackOnly(AtomicTransaction.java:771)
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.setRollbackOnly(TransactionImple.java:387)
       at org.jboss.aspects.tx.TxPolicy.setRollbackOnly(TxPolicy.java:212)
       at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
       at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
       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.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
       at $Proxy279.onMessage(Unknown Source)
       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.onMessage(SonicServerSession.java:168)
       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)
      2006-12-04 18:31:38,652 WARN [com.arjuna.ats.jts.logging.loggerI18N] [com.arjuna.ats.internal.jts.cwcommit] Failed to mark transaction as rollback only:
      org.omg.CosTransactions.Unavailable: IDL:omg.org/CosTransactions/Unavailable:1.0
       at com.arjuna.ats.internal.jts.ControlWrapper.rollback_only(ControlWrapper.java:344)
       at com.arjuna.ats.internal.jts.ControlWrapper.preventCommit(ControlWrapper.java:168)
       at com.arjuna.ats.jts.extensions.AtomicTransaction.rollbackOnly(AtomicTransaction.java:771)
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.setRollbackOnly(TransactionImple.java:387)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:277)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
       at $Proxy279.onMessage(Unknown Source)
       at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.onMessage(SonicServerSession.java:168)
       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)
      2006-12-04 18:31:38,667 ERROR [STDERR] java.lang.NullPointerException
      2006-12-04 18:31:38,673 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.commit(BaseTransaction.java:165)
      2006-12-04 18:31:38,674 ERROR [STDERR] at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
      2006-12-04 18:31:38,674 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.endTransaction(MessageInflowLocalProxy.java:433)
      2006-12-04 18:31:38,674 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.finish(MessageInflowLocalProxy.java:312)
      2006-12-04 18:31:38,674 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:228)
      2006-12-04 18:31:38,674 ERROR [STDERR] at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:134)
      2006-12-04 18:31:38,674 ERROR [STDERR] at $Proxy279.afterDelivery(Unknown Source)
      2006-12-04 18:31:38,674 ERROR [STDERR] at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.onMessage(SonicServerSession.java:177)
      2006-12-04 18:31:38,674 ERROR [STDERR] at progress.message.jimpl.Session.eU_(Unknown Source)
      2006-12-04 18:31:38,675 ERROR [STDERR] at progress.message.jimpl.Session.run(Unknown Source)
      2006-12-04 18:31:38,675 ERROR [STDERR] at com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicServerSession.run(SonicServerSession.java:199)
      2006-12-04 18:31:38,675 ERROR [STDERR] at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      2006-12-04 18:31:38,675 ERROR [STDERR] at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      2006-12-04 18:31:38,675 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
      2006-12-04 18:31:38,675 ERROR [STDERR] at java.lang.Thread.run(Thread.java:797)
      2006-12-04 18:31:38,676 ERROR [Sonic Resource Adapter for JCA] EXCEPTION: SonicServerSession.onMessage() cannot deliver message progress.message.jimpl.TextMessage@54225422 javax.resource.ResourceException java.lang.IllegalStateException: BaseTransaction.commit - [com.arjuna.ats.internal.jta.transaction.jts.notxe] [com.arjuna.ats.internal.jta.transaction.jts.notxe] - no transaction! Caught:java.lang.NullPointerException
      javax.resource.ResourceException: java.lang.IllegalStateException: BaseTransaction.commit - [com.arjuna.ats.internal.jta.transaction.jts.notxe] [com.arjuna.ats.internal.jta.transaction.jts.notxe] - no transaction! Caught:java.lang.NullPointerException
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.after(MessageInflowLocalProxy.java:232)
       at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:134)
       at $Proxy279.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: BaseTransaction.commit - [com.arjuna.ats.internal.jta.transaction.jts.notxe] [com.arjuna.ats.internal.jta.transaction.jts.notxe] - no transaction! Caught:java.lang.NullPointerException
       at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.commit(BaseTransaction.java:171)
       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
      
      



      -Juha-