javax.transaction.xa.XAException

Oracle Community | 3004 | 1 decade ago
  1. 0

    J2CA connector

    Oracle Community | 1 decade ago | 3004
    javax.transaction.xa.XAException
  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 | 3 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 com.neon.jca.XAError.Check()
    2. com.neon.jca
      XAResource.commit
      1. com.neon.jca.XAError.Check(XAError.java:324)
      2. com.neon.jca.XAProxyLocal.XACommit(XAProxyLocal.java:334)
      3. com.neon.jca.XAResource.commit(XAResource.java:279)
      3 frames
    3. weblogic.connector.common
      XATransXAWrapper.commit
      1. weblogic.connector.common.internal.XATransXAWrapper.commit(XATransXAWrapper.java:39)
      1 frame
    4. weblogic.transaction.internal
      ServerTransactionImpl$2.execute
      1. weblogic.transaction.internal.ServerResourceInfo.commit(ServerResourceInfo.java:1313)
      2. weblogic.transaction.internal.ServerResourceInfo.commit(ServerResourceInfo.java:512)
      3. weblogic.transaction.internal.ServerSCInfo.startCommit(ServerSCInfo.java:237)
      4. weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransactionImpl.java:1474)
      5. weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2042)
      6. weblogic.transaction.internal.ServerTransactionImpl.access$2(ServerTransactionImpl.java:2002)
      7. weblogic.transaction.internal.ServerTransactionImpl$2.execute(ServerTransactionImpl.java:2479)
      7 frames
    5. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
      2 frames