0 Replies Latest reply on May 3, 2011 8:16 AM by asterisk

    Adding multiple last resources is disallowed

    asterisk Newbie

      Hello,

       

      I have migrated an EJB 2.1 application from JBoss AS4.0.4GA to 5.1.0GA with HornetQ 2.1.2 for JMS. After fixing many problems there is now one problem left. I use Hudson to run integration tests every night. From time to time I get an error, it happens about once a week:

       

      WARN  [WorkerThread#2[10.2.163.202:51176]] [loggerI18N 978] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1afd2047

      ERROR [WorkerThread#2[10.2.163.202:51176]] [LogInterceptor 419] TransactionRolledbackLocalException in method: public abstract my.application.ActionSetProfData my.application.ActionProfileManagerLocal.getJobProfile(int), causedBy:

        org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; -

        nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a02a3ca:c7a3:4d9d067f:684b status: ActionStatus.ABORT_ONLY >); -

        nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; -

        nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a02a3ca:c7a3:4d9d067f:684b status: ActionStatus.ABORT_ONLY >))

              at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)

       

      This only happens from time to time and always at different positions in the code. As far as I can see, there is only one DB connection in use at the same time. I have read the hints at http://community.jboss.org/wiki/Multiple1PC already. Switching to XA DB connections is not an option for me. Can anybody help?

       

      Thanks in advance!

       

      Kind regards