2 Replies Latest reply on Apr 3, 2007 9:43 AM by mrhightech

    RollbackException (arjuna) in 4.2RC1 with no cause

    mrhightech

      Hello!

      I am trying to figure out a rollback exception in my service for which no cause is listed. Is there some logging / debugging I can do to actually get the cause? I've added simple logging and the whole service is called, data is fetched from the entity manager (no write incidently), and on return, the exception is thrown.

      Last detail, this is a "stock 4.2". I have not updated any library (hibernate etc.)

      Thanks,
      Daniel

      Caused by: javax.transaction.RollbackException
       at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1215)
       at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
       at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       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.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
       at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:274)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
       at org.jboss.remoting.Client.invoke(Client.java:612)
       at org.jboss.remoting.Client.invoke(Client.java:604)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:84)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
       at $Proxy1.findByExample(Unknown Source)
      


        • 1. Re: RollbackException (arjuna) in 4.2RC1 with no cause
          jhalliday

          In the server/.../conf directory is a jbossjta-properties.xml file with the debug properties:

          <properties name="common">
          <property name="com.arjuna.common.util.logging.DebugLevel"
          type="System" value="0x00000000"/>
          <property name="com.arjuna.common.util.logging.FacilityLevel"
          type="System" value="0xffffffff"/>
          <property name="com.arjuna.common.util.logging.VisibilityLevel"
          type="System" value="0xffffffff"/>
          <property name="com.arjuna.common.util.logger" type="System" value="log4j"/>
          </properties>


          Set debug level to 0xffffffff until you get a feel for what information you need. You may also need to tweak the jboss-log4j.xml file in the same directory so that it logs the com.arjuna class hierarchy at maximum verbosity.


          • 2. Re: RollbackException (arjuna) in 4.2RC1 with no cause
            mrhightech

            Thanks I'll have a look at that. In the meantime, I reverted to the "old" in memory transaction manager and was able to locate the error in the persistence code quite easily.

            I still think that out of the box, the exceptions should be chained back to the RollbackException as causes.

            Thanks,

            Daniel