javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

redhat.com | 4 months ago
  1. 0

    Bug 1047905 – REPEATABLE_READ not working for AtomicMap and FineGrainedAtomicMap

    redhat.com | 4 months ago
    javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    steps used to install: In the home directory of the "bonita" user: create a directory "packages" unzip BonitaBPMSubscription-7.1.0-deploy.zip into this directory In the home directory of the "bonita" user: create a directory "bonita" copy content of bonita-home-7.1.0 from packages to ./bonita Copy JAR from packages/BonitaBPMSubscription-7.1.0-deploy/Tomcat-7.0.55/lib/ to lib/: Stop the tomcat instance -Copy bitronix-* to the conf/ directory. -Copy conf/Catalina/localhost/bonita.xml from packages to conf/Catalina/localhost/ -Copy webapps/bonita.war from packages to webapps/ -Copy loggings.properties from packages to conf/ -copy a JDBC driver adapted to your version of oracle into lib/ -Adapt server configuration edit server.xml to add bitronix Listent <!-- Bitronix listener. Used by Bonita Engine for transaction management (JTA) --> <Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" /> -edit server.xml to add bonita auth service (basic) <Host ...> <Valve className="org.bonitasoft.console.security.SessionFixationValve" authenticationUrl="/loginservice" asyncSupported="true"/> </Host> -modify ./bin/envvars, adding: # <Bonita> CATALINA_OPTS="$CATALINA_OPTS -Dbonita.home=${CATALINA_BASE}/bonita" CATALINA_OPTS="$CATALINA_OPTS -Dsysprop.bonita.db.vendor=oracle" CATALINA_OPTS="$CATALINA_OPTS -Dbtm.root=${CATALINA_BASE}" CATALINA_OPTS="$CATALINA_OPTS -Dbitronix.tm.configuration=${CATALINA_BASE}/conf/bitronix-config.properties" CATALINA_OPTS="$CATALINA_OPTS Djava.security.auth.login.config=${CATALINA_BASE}/conf/jaas-standard.cfg" CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF-8 -Xshare:auto" # </Bonita> -Configure database configuration -Tomcat datasource -Edit the conf/Catalina/localhost/bonita.xml file: <Resource name="bonitaSequenceManagerDS"> Comment out others. -Bitronix modify bitronix-resources.properties with changes made for resource.ds1 with correct db details. Start the instance. With Oracle, XA transaction check fails, hence the platform does not start. the error logs are below. WARNING: error running recovery on resource 'jdbc/bonitaDSXA', resource marked as failed (background recoverer will retry recovery) bitronix.tm.recovery.RecoveryException: cannot start recovery on a PoolingDataSource containing an XAPool of resource jdbc/bonitaDSXA with 1 connection(s) (1 still available) -failed- at bitronix.tm.resource.jdbc.PoolingDataSource.startRecovery(PoolingDataSource.java:288) at bitronix.tm.recovery.Recoverer.recover(Recoverer.java:258) at bitronix.tm.recovery.Recoverer.recoverAllResources(Recoverer.java:226) at bitronix.tm.recovery.Recoverer.run(Recoverer.java:142) at java.lang.Thread.run(Thread.java:745) Caused by: bitronix.tm.internal.BitronixRuntimeException: incremental recovery failed when trying to acquire a connection from failed resource 'jdbc/bonitaDSXA' at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:103) at bitronix.tm.resource.jdbc.PoolingDataSource.startRecovery(PoolingDataSource.java:284) ... 4 more Caused by: bitronix.tm.recovery.RecoveryException: failed recovering resource jdbc/bonitaDSXA at bitronix.tm.recovery.IncrementalRecoverer.recover(IncrementalRecoverer.java:100) at bitronix.tm.resource.common.XAPool.getConnectionHandle(XAPool.java:100) ... 5 more Caused by: javax.transaction.xa.XAException at oracle.jdbc.xa.OracleXAResource.recover(OracleXAResource.java:526) at bitronix.tm.recovery.RecoveryHelper.recover(RecoveryHelper.java:103) at bitronix.tm.recovery.RecoveryHelper.recover(RecoveryHelper.java:61) at bitronix.tm.recovery.IncrementalRecoverer.recover(IncrementalRecoverer.java:63) ... 6 more and this as well ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita].[homepage]- Servlet.service() for servlet [homepage] in context with path [/bonita] threw exception [org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id] with root cause org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously. We tried granting necessary rights to the user on the database which we use but we still receive the same error. Request some help from your side. Thanks, Sanjeev

    JIRA | 4 months ago | Sanjeev Balasubramanian
    bitronix.tm.recovery.RecoveryException: cannot start recovery on a PoolingDataSource containing an XAPool of resource jdbc/bonitaDSXA with 1 connection(s) (1 still available) -failed-

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.transaction.xa.XAException

      No message provided

      at org.infinispan.transaction.TransactionCoordinator.prepare()
    2. Infinispan Core
      SynchronizationAdapter.beforeCompletion
      1. org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:139)
      2. org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:101)
      3. org.infinispan.transaction.synchronization.SynchronizationAdapter.beforeCompletion(SynchronizationAdapter.java:44)
      3 frames
    3. JBossTS jbossjta
      BaseTransaction.commit
      1. com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)
      2. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)
      3. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)
      4. com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
      5. com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)
      6. com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
      6 frames
    4. org.infinispan.tx
      DistTotalOrderL1WriteSkewTest.transactionCleanupWithWriteSkew
      1. org.infinispan.tx.totalorder.writeskew.DistTotalOrderL1WriteSkewTest.transactionCleanupWithWriteSkew(DistTotalOrderL1WriteSkewTest.java:34)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. TestNG
      ThreadUtil$2.call
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      10. org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
      11. org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
      12. org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
      12 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:744)
      4 frames