4 Replies Latest reply on Jun 26, 2007 9:08 AM by jhalliday

    Transaction is not active

    honest

      I have this error on my application work:

      11:01:40,453 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id a001912:12dc:467bdf8d:2385f invoked while multiple threads active within it.
      11:01:40,453 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action a001912:12dc:467bdf8d:2385f aborting with 1 threads active!
      11:01:40,453 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      11:01:40,453 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: a001912:12dc:467bdf8d:2385f status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a001912:12dc:467bdf8d:2385f status: ActionStatus.ABORTED >)
      11:01:40,484 ERROR [TxInterceptorCMT] IllegalStateException while setting transaction for rollback only
      java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
       at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.setRollbackOnly(TransactionImple.java:344)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:157)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
       at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
       at org.jboss.ejb.Container.invoke(Container.java:960)
       at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:146)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
      


      Application have client-server architecture. Error appears on server side.
      I use jboss-4.2.0GA+Spring+Hibernate. And on server i use -XX:+UseParallelGC option on JVM. How fix this error?

        • 1. Re: Transaction is not active
          jhalliday

          Make sure you are running the latest build of AS 4.2, as there are known issues with thread/transaction disassociation in earlier releases including the community GA. Make sure you are calling commit, rollback or suspend for any transaction you begin and not leaving them active on threads. If the problem remains, submit a test case and I'll take a look at it.

          • 2. Re: Transaction is not active
            honest

            My version of jboss latest. For calling commit and rollback methods looking Spring.

            • 3. Re: Transaction is not active
              honest

              Maybe this error raise, because Spring's TransactionManager different from JBoss TransactionManager?

              • 4. Re: Transaction is not active
                jhalliday

                You claim to be using 4.2.0.GA but also 'latest' The 4.2.0.GA build is not the latest, it's merely the most recent for which there are published binaries. As I've said it is known to be broken, per my comments above. Build the AS 4.2 branch from source if you have to, but don't expect further help for this problem against the community GA release.