Wilhelm Berger [
https://community.jboss.org/people/greendale] created the discussion
"JMS messages not delivered anymore after warnings during XA recovery"
To view the discussion, visit:
https://community.jboss.org/message/825738#825738
--------------------------------------------------------------
Hi all,
I have migrated an application from AS 5 to AS 7 (*jboss-as-7.1.1.Final*) in
*standalone-full mode*. Everything works quite fine, but when the server is running for 1
or 2 days, I get periodic JMS exceptions:
00:06:14,173 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016027: Local
XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR:
javax.transaction.xa.XAException: Error trying to connect to any providers for xa
recovery
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:275)
[hornetq-jms-2.2.13.Final.jar:]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:77)
[hornetq-jms-2.2.13.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503)
[jbossjts-4.16.2.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471)
[jbossjts-4.16.2.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385)
[jbossjts-4.16.2.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166)
[jbossjts-4.16.2.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789)
[jbossjts-4.16.2.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371)
[jbossjts-4.16.2.Final.jar:]
Caused by: java.lang.IllegalStateException: Cannot create session factory, server locator
is closed (maybe it has been garbage collected)
at
org.hornetq.core.client.impl.ServerLocatorImpl.assertOpen(ServerLocatorImpl.java:1823)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:699)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.connect(HornetQXAResourceWrapper.java:321)
[hornetq-jms-2.2.13.Final.jar:]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:251)
[hornetq-jms-2.2.13.Final.jar:]
... 7 more
Whenever these exceptions occur the JMS messages are not delivered anymore to the JMS
consumer. Only after a server restart the messages are delivered. My queue declaration in
standalone-full.xml is
<jms-destinations>
<jms-queue name="MyQueue">
<entry name="queue/MyQueue"/>
<entry name="java:jboss/exported/jms/queue/MyQueue"/>
</jms-queue>
</jms-destinations>
I have found some related posts to this topic but none of them really applied.
Any idieas?
thx and best regards
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/825738#825738]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]