1 Reply Latest reply on Sep 15, 2012 7:33 AM by wdfink

    JBoss 4.2.2 TransactionTimeout

    marcusdidiusfalco

      JBoss 4.2.2 on Sun Java 7, several different OS.

      Hello.

       

      In a legacy application I suddenly get Tx Timeouts

       

      [code]

      9:12,207 11613917 DEBUG [Jobs] (WorkManager(2)-14:) step: .SchreibeDtaus

      2012-09-13 19:19:12,247 11613957 DEBUG [Jobs] (WorkManager(2)-12:) step: .SchreibeDtaus

      2012-09-13 19:19:12,267 11613977 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (Thread-3:) [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@6f3abd39

      2012-09-13 19:19:12,267 11613977 DEBUG [Jobs] (WorkManager(2)-10:) step: .SchreibeDtaus

      2012-09-13 19:19:12,268 11613978 DEBUG [Jobs] (WorkManager(2)-14:) step: .CreateDataContainer

      2012-09-13 19:19:12,268 11613978 DEBUG [Jobs] (WorkManager(2)-14:) step: .holeFall

      2012-09-13 19:19:12,273 11613983 WARN  [org.hibernate.util.JDBCExceptionReporter] (WorkManager(2)-8:) SQL Error: 0, SQLState: null

      2012-09-13 19:19:12,273 11613983 ERROR [org.hibernate.util.JDBCExceptionReporter] (WorkManager(2)-8:) Transaction is not active: tx=TransactionImple < ac, BasicAction: a814292:abcc:5051e833:184043 status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a814292:abcc:5051e833:184043 status: ActionStatus.ABORTED >)

      2012-09-13 19:19:12,275 11613985 DEBUG [Jobs] (WorkManager(2)-12:) step: .CreateDataContainer

      [/code]

       

      it comes from an SSB with bean-managed transaction

       

      [code]

      @javax.ejb.Stateless(name = "MONATSLAUF")

      @javax.ejb.TransactionManagement(javax.ejb.TransactionManagementType.BEAN)

      public class Monatslauf2Bean implements Job {

       

           public Map process(Map map, boolean resume) throws BlaException {

      ..............

                  this.transaction.commit();

      ....

                    

      while (it4.hasNext()) {

                          java.lang.Long fallid = (java.lang.Long) it4.next();

                        .....

                          logjob.debug("step: .holeFall");

                          falldaten =bla.dbaccess.util.DataAccess

                                  .holeFall((bafoeg21.commons.GenericData) falldaten);

                        

       

      ....

      [/code]

       

      This code runs several thousand times until at a seemingly random time the exception appears and everything crashes.

       

      jboss-service.xml

       

      [code]

      <!-- JBoss Transactions JTA -->

         <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"

            name="jboss:service=TransactionManager">

            <attribute name="TransactionTimeout">36000</attribute>

            <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>

         </mbean>

      [/code]

       

      We use a Oracle 10g. We do not see any errors in the listener log.

       

      I would be grateful for any ideas how to approach this problem.

       

      Thanks,

       

      Hans

        • 1. Re: JBoss 4.2.2 TransactionTimeout
          wdfink

          it look not like a timeout

          2012-09-13 19:19:12,267 11613977 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (Thread-3:) [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@6f3abd39

          This looks like that the 2PC detect a problem.

          What resources are involved? Do you see other problems in the logfile?

          If you have such very long running Tx a lot of concurrent stuff might happen at the DB side.