2 Replies Latest reply on Jun 30, 2008 4:52 AM by Jerry Jacob

    javax.transaction.HeuristicMixedException

    Raphaela Galhardo Newbie

      Does someone has ever seen this error and know how to resolve it?

      3:12:18,567 WARN [loggerI18N] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] XAResourceRecord.prepare - prepare failed with exception XAException.XAER_RMERR
      13:12:18,568 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_50] - Prepare phase of action a03804d:c6cf:47bd9482:16 received heuristic decision: TwoPhaseOutcome.HEURISTIC_HAZARD
      13:12:18,568 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_36] - BasicAction.End() - prepare phase of action-id a03804d:c6cf:47bd9482:16 failed.
      13:12:18,568 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_37] - Received heuristic: TwoPhaseOutcome.HEURISTIC_HAZARD .
      13:12:18,568 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_38] - Action Aborting
      13:12:18,622 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract java.lang.Object br.ufrn.arq.negocio.Processador.execute(br.ufrn.arq.dominio.Movimento) throws br.ufrn.arq.erros.NegocioException,br.ufrn.arq.erros.ArqException,java.rmi.RemoteException, causedBy:
      javax.transaction.HeuristicMixedException

      at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commit(TransactionImple.java:252)
      at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:361)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)


      We use JBOSS 4.2.2

      Thanks,

      Raphaela

        • 1. Re: javax.transaction.HeuristicMixedException
          Jonathan Halliday Master

          > Does someone has ever seen this error and know how to resolve it?

          The Gods are angry. Perform a blood sacrifice under the full moon tonight and all shall be well. :-)

          Alternatively, find out which resource manager (DB, JMS) is refusing to prepare the tx branch and why. The sulking resource manager appears to be the root of the problem.

          • 2. Re: javax.transaction.HeuristicMixedException
            Jerry Jacob Newbie

            Hi,

            I am having exactly the same issue. Were you able to solve this?

            I have an MDB which is listening to a Queue. It also invokes a series of other Container Managed beans after reading the message. These beans have transaction attribute set to Required and NotSupported. Could that be an issue here? I have also checked the datasources and they are using xa connection

            Any help is highly appreciated.

            Thanks in advance