Bug 809916 - Cannot connect to JMS server with HornetQ and server's address bound to 0.0.0.0
Summary: Cannot connect to JMS server with HornetQ and server's address bound to 0.0.0.0
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: Configuration, JBoss HornetQ
Version: 5.3.0 GA
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ER4
: 5.3.0 GA
Assignee: Julian Coleman
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 16:31 UTC by Pavel Macik
Modified: 2025-02-10 03:19 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:19:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
HornetQ configuration patch file (632 bytes, patch)
2012-04-04 16:31 UTC, Pavel Macik
no flags Details | Diff

Description Pavel Macik 2012-04-04 16:31:32 UTC
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.

Comment 1 Julian Coleman 2012-05-30 15:47:28 UTC
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.

Comment 4 Suz 2012-06-13 23:54:25 UTC
    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.

Comment 6 David Le Sage 2012-07-02 03:49:07 UTC
    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.

Comment 7 Red Hat Bugzilla 2025-02-10 03:19:31 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.