<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: connecting a remote hornetQ server
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/sv_srinivaas">srinivaas venkat</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/741920#741920">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi, I'm using JBoss 7.1.0 Final with Hornetq 2.2.13. Final</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Hi, I'm also getting the same exception on starting my remote host that has the MDB that connects to the cluster of jms nodes. The moment I start my mdb rempte host, I get the below exceptions in server console on mdb as well as on the jms nodes. I have also set the user and password for pooled-connection-factory but then the same gets deleted on server start.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Otherwise everything works fine with mdb, able to consume messages from cluster and sending the reply messages, just that i get the below exception andI i have not tested the xa recovery yet.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>MDB console log</p><p>-------------------------</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>08:42:02,209 INFO&#160; [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "mdb.jar"<br/>08:42:10,463 WARN&#160; [org.hornetq.jms.server.recovery.HornetQXAResourceWrapper] (Periodic Recovery) Can't connect to any hornetq server on recovery [XARecoveryConfig [hornetQConnectionFactory=HornetQConnectionFactory [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&amp;host=epctjmsdev3-wipo-int, org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&amp;host=epctjmsdev4-wipo-int], discoveryGroupConfiguration=null], clientID=null, dupsOKBatchSize=1048576, transactionBatchSize=1048576,], username=null, password=null]]<br/>08:42:10,474 WARN&#160; [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<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:275) [hornetq-jms-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:77) [hornetq-jms-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503) [jbossjts-4.16.2.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471) [jbossjts-4.16.2.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385) [jbossjts-4.16.2.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166) [jbossjts-4.16.2.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789) [jbossjts-4.16.2.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371) [jbossjts-4.16.2.Final.jar:]<br/>Caused by: HornetQException[errorCode=2 message=null]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.connect(HornetQXAResourceWrapper.java:351) [hornetq-jms-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:251) [hornetq-jms-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 7 more</p><p>08:42:10,513 WARN&#160; [org.hornetq.jms.server.recovery.HornetQXAResourceWrapper] (Periodic Recovery) Can't connect to any hornetq server on recovery [XARecoveryConfig [hornetQConnectionFactory=HornetQConnectionFactory [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&amp;host=epctjmsdev3-wipo-int, org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&amp;host=epctjmsdev4-wipo-int], discoveryGroupConfiguration=null], clientID=null, dupsOKBatchSize=1048576, transactionBatchSize=1048576,], username=null, password=null]]</p><p><br/>This message repeats every 2 mins </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>JMS node log</p><p>--------------------</p><p>.09:17:12,889 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O server worker (parentId: 1705769926, [id: 0x65abfbc6, jms_node1/a.b.c.d:5445])) Failed to create session : HornetQException[errorCode=105 message=Unable to validate user: null]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:147) [hornetq-core-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:807) [hornetq-core-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187) [hornetq-core-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85) [hornetq-core-2.2.13.Final.jar:]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508) [hornetq-core-2.2.13.Final.jar:]</p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/741920#741920">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>