3 Replies Latest reply on Oct 11, 2001 7:46 AM by tristan

    XA Exception - Unable to Commit

    tristan

      Hi,

      I have upgraded two of our servers which were running a 2.4.0 beta version of JBoss. One of these servers "A" is using JMS to send information to the other "B". The Message Queue is running on "B" and the information that is passed is processed by the MDB on "B" too. Messages are sent from a Session Bean running on server "A". I have followed the procedure for using JMS as a managed resource (http://www.jboss.org/documentation/HTML/ch08s32.html).


      The problem is since the upgrade the Messaging is no longer working throwing a:

      XAException: tx=XidImpl [FormatId=257, GlobalId=cascade.skinkers.com//13, BranchQual=] errorCode=XAER_RMERR

      Exception whenever a message is sent. Full output of the exception and debug is provided at the end of this message.

      I have changed the Queue to run locally and it works fine.

      Has anybody got any idea on what the problem may be??

      Regards Tristan.

      [skinkers/ResultCount] Activated bean skinkers/ResultCount with id = [.10.10.10.]
      [Default] Mon Oct 08 20:21:45 CEST 2001 LOG UPLOAD TO MAIN SERVER
      [Default] Msg=
      10

      [MessageJmsXA] Pool org.jboss.jms.ra.JmsManagedConnectionFactory-1 [1/1/Unlimited] gave out pooled object: org.jboss.jms.ra.JmsManagedConnection@46a99d
      [MessageJmsXA] FINE: Leaving out XAResource
      [MessageJmsXA] FINE: ConnectionEvent listener added
      [MessageJmsXA] Connection handle 'org.jboss.jms.ra.JmsSession@4b754f' issued by connection manager 'org.jboss.pool.connector.jboss.MinervaXACM@80876' from mcf 'org.jboss.jms.ra.JmsManagedConnectionFactory@75d80f92'
      [MessageJmsXA] FINE: Closing session
      [MessageJmsXA] FINE: Sending connection event: 1
      [MessageJmsXA] Connection handle 'org.jboss.jms.ra.JmsSession@4b754f' closed from connection manager 'org.jboss.pool.connector.jboss.MinervaXACM@80876' from mcf 'org.jboss.jms.ra.JmsManagedConnectionFactory@75d80f92'
      [MessageJmsXA] Pool org.jboss.jms.ra.JmsManagedConnectionFactory-1 [0/1/Unlimited] returned object org.jboss.jms.ra.JmsManagedConnection@46a99d to the pool.
      [SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
      [skinkers/LogServices] ConnectionFactoryLoader.getObjectInstance, name = 'MessageJmsXA'
      [skinkers/LogServices] XAException: tx=XidImpl [FormatId=257, GlobalId=cascade.skinkers.com//13, BranchQual=] errorCode=XAER_RMERR
      [skinkers/LogServices] javax.transaction.xa.XAException
      [skinkers/LogServices] at org.jboss.mq.SpyXAResource.prepare(SpyXAResource.java:152)
      [skinkers/LogServices] at org.jboss.tm.TxCapsule.prepareResources(TxCapsule.java:1410)
      [skinkers/LogServices] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:329)
      [skinkers/LogServices] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
      [skinkers/LogServices] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:364)
      [skinkers/LogServices] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [skinkers/LogServices] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
      [skinkers/LogServices] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [skinkers/LogServices] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      [skinkers/LogServices] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:483)
      [skinkers/LogServices] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [skinkers/LogServices] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      [skinkers/LogServices] at $Proxy6.uploadLogsToMessageServer(Unknown Source)
      [skinkers/LogServices] at skinkers.mbean.log.UploadLogService$Listener.handleNotification(UploadLogService.java:44)
      [skinkers/LogServices] at com.sun.management.jmx.MBeanServerNotificationListener.handleNotification(MBeanServerNotificationListener.java:48)
      [skinkers/LogServices] at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:142)
      [skinkers/LogServices] at javax.management.timer.Timer.sendNotification(Timer.java:1119)
      [skinkers/LogServices] at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1089)
      [skinkers/LogServices] at javax.management.timer.TimerAlarmClock.run(Timer.java:1165)
      [Default] Exception in UploadLogs inner class Listener: javax.transaction.RollbackException: Unable to commit, tx=XidImpl [FormatId=257, GlobalId=cascade.skinkers.com//13, BranchQual=] status=STATUS_ROLLEDBACK