[jboss-user] [JBoss Messaging] - [JBossAS5.1] JBoss Messaging works within a localhost, but not between systems

Sunghyun Kim do-not-reply at jboss.com
Wed Oct 17 22:00:16 EDT 2012


Sunghyun Kim [https://community.jboss.org/people/ednaswap] created the discussion

"[JBossAS5.1] JBoss Messaging works within a localhost, but not between systems"

To view the discussion, visit: https://community.jboss.org/message/766551#766551

--------------------------------------------------------------
Hi,

I've recently set up JBoss AS 5.1 and implemented a point-to-point messaging service,

where one client produces a message and the other consumes it, which works well 

on a localhost, but not the case when the localhost is bound to an ip address and

the client(consumer) is outside the system over the firewall, with the producer within the localhost.

The currently open ports ( by system administrator of my institution ) are :

1098
1099
4444
4457  (  opened to solve -> Problem establishing socket connection for InvokerLocator [bisocket://???.??.??.???:*4457*/ )
4460

The ip address is open to public and even the firewall in my Windows 7 is down for test. 

The command I use when starting a JBoss AS is

run.bat -b ???.??.??.??? -c default

I have not been able to find any clue to the problem since yesterday, completely stuck.

I hope some guru may wake me up.

=== Error message ===

org.jboss.jms.exception.MessagingNetworkFailureException
 at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:245)
 at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:191)
 at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
 at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
 at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_1522065175.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_1522065175.java)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
 at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
 at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
 at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
 at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
 at net.hdss.clients.jms.HDSS_JMS_Consumer_Client.main(HDSS_JMS_Consumer_Client.java:39)
Caused by: java.net.ConnectException: Connection timed out: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at org.jboss.remoting.transport.bisocket.BisocketServerInvoker$2.run(BisocketServerInvoker.java:398)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:390)
 at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:415)
 at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
 at org.jboss.remoting.Client.invoke(Client.java:1724)
 at org.jboss.remoting.Client.addCallbackListener(Client.java:1793)
 at org.jboss.remoting.Client.addListener(Client.java:1001)
 at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:259)
 at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:375)
 at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)
 ... 10 more
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/766551#766551]

Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121017/bf170988/attachment.html 


More information about the jboss-user mailing list