Receiving "Connection refused" to primary IP when Active MQ is bound to secondary IP
Issue
- JBoss ON Agent and jconsole both receive a Connection refused to Primary IP address when Active-MQ server is bound to the secondary IP
Environment
- Red Hat JBoss Operations Network (ON) 3.3
- Red Hat JBoss Active-MQ (AMQ) 6.2.1
- Primary and Secondary IP addresses assigned to NIC
- AMQ serviceURL to
service:jmx:rmi://<secondaryIP>:44444/jndi/rmi://<secondaryIP>:1099/karaf-root - Connection refused error to Primary IP:
java.rmi.ConnectException: Connection refused to host: <primaryIP>; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2430)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:308)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:370)
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:313)
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:294)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
