| Summary: | Cannot connect to JMS server with HornetQ and server's address bound to 0.0.0.0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 5 | Reporter: | Pavel Macik <pmacik> | ||||
| Component: | Configuration, JBoss HornetQ | Assignee: | Julian Coleman <jcoleman> | ||||
| Status: | VERIFIED --- | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 5.3.0 GA | CC: | jcoleman, kejohnso, mvecera, soa-p-jira | ||||
| Target Milestone: | ER4 | ||||||
| Target Release: | 5.3.0 GA | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
An exception was thrown when attempting to connect to the JMS server with HornetQ. The error occurred when the server's address was bound to 0.0.0.0. It was caused by the connectors' and acceptors' host being derived from the "jboss.bind.address" property.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | Bug | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Resolved with revision 11137 of: soa-p/src/main/patches/eap/patch_hornetq_conf.xml Commit message: BZ 809916 Replace: ${jboss.bind.address:localhost} with: ${jboss.esb.bind.address:localhost} in all hornetq-configuration.xml files.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
An exception is thrown when attempting to connect to the JMS server with HornetQ. The error occurs when the server's address is bound to 0.0.0.0. It is caused by connectors' and acceptors' host taken from "jboss.bind.address" property.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1 +1 @@
-An exception is thrown when attempting to connect to the JMS server with HornetQ. The error occurs when the server's address is bound to 0.0.0.0. It is caused by connectors' and acceptors' host taken from "jboss.bind.address" property.+An exception was thrown when attempting to connect to the JMS server with HornetQ. The error occurred when the server's address was bound to 0.0.0.0. It was caused by the connectors' and acceptors' host being derived from the "jboss.bind.address" property.
|
Created attachment 575183 [details] HornetQ configuration patch file When one uses -b argument to run.sh to set the bind address to the server with value of "0.0.0.0" JMS clients are unable to connect to the JMS server and following exception ("javax.jms.JMSException: Failed to create session factory") is thrown when HornetQ is used as JMS provider. [java] Caused by: HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.] [java] at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:779) [java] at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:601) [java] ... 18 more This is caused by connectors' and acceptors' host taken from "jboss.bind.address" property. It should rather use "jboss.esb.bind.address" property instead. Attached is a patch for hornetq-configuration.xml that fixes the issue.