4 Replies Latest reply on Feb 11, 2008 9:28 AM by javacory

    Best way to debug transaction manager in JBoss 4.2.0GA

    javacory

      Hello,

      Is there a way we can determine either from logging or some other mechanism what/when/where a transaction's state is turned to aborted?

      We are getting random "org.jboss.tm.JBossTransactionRolledbackException" after the app server has been up for a few days and has processed many transactions. At the time this exception is thrown, our CMT is attempting to commit, but the transaction is in the aborted state.

      The kicker is, there is no underlying cause as to why. If there was a database or JMS error which caused this, then I would be happy, but there isn't ( at least from the stack trace ).

      Thanks for your help.

      Cory.

        • 1. Re: Best way to debug transaction manager in JBoss 4.2.0GA
          jhalliday

          > Is there a way we can determine either from logging or some other mechanism what/when/where a transaction's state is turned to aborted?

          Turn on full debugging in the jbossjta-properties.xml and ensure the com.arjuna classes log at DEBUG or TRACE in your log4j config file. Let me know when you manage to dig yourself out from under the vast quantity of output that will generate :-)

          • 2. Re: Best way to debug transaction manager in JBoss 4.2.0GA
            javacory

            Thanks for the reply.

            I see what you mean by the massive amount of logging. Would you know of a string to pick out for when a transaction gets set to the "aborted" state?

            Also, I've tried attaching different version of the JTA source code to the arjuna classes and can never get an exact match on all classes.

            Thanks,

            Cory.

            • 3. Re: Best way to debug transaction manager in JBoss 4.2.0GA
              jhalliday

              hehe. I did warn you :-)

              The trick to matching the source is to look at the build/build-thirdparty.xml file for the AS version you are running, it will tell you which version of JBossTS you need. For AS 4.2.0.GA it's TS 4.2.3.SP3 but you should really move to AS 4.2.2.GA

              • 4. Re: Best way to debug transaction manager in JBoss 4.2.0GA
                javacory

                Thanks again for the reply.

                We found the issue after turning the logging up. The transaction manager was fine, there was an underlying Oracle error being thrown out of the JMS persistence logic that was not being logged with the standard log levels.

                Thanks again,

                Cory.