Re: [jboss-user] [JBoss Remoting] - Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3
by Ron Sigal
Ron Sigal [http://community.jboss.org/people/ron.sigal%40jboss.com] replied to the discussion
"Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3"
To view the discussion, visit: http://community.jboss.org/message/545315#545315
--------------------------------------------------------------
Hi Prabhu,
Well, you're making progress. The new exception indicates that you're making a "primary" connection, and failing on the "secondary" connection. The details don't matter,…
[View More] but the bisocket transport will connect from the client to two different ServerSockets on the server, and you're failing to connection to the secondary ServerSocket.
> And I think the error which I reported earlier may be due to a firewall between my Bangalore box and UK box
>
In fact, the attribute I suggested taking out, "secondaryConnectPort," is relevant to connection in the presence of a firewall. if the firewall is doing address (and, in particular, port) translation. I would check that out next. It could be that you need to connect to a port different from the one the secondary ServerSocket is bound to.
-Ron
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545315#545315]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
[View Less]
14 years, 9 months
Re: [jboss-user] [JBoss Remoting] - Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3
by Prabhu Natarajan
Prabhu Natarajan [http://community.jboss.org/people/prabhun] replied to the discussion
"Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3"
To view the discussion, visit: http://community.jboss.org/message/545310#545310
--------------------------------------------------------------
Hi Ron,
Thanks for your reply.
I did some more analysis.
I setup the JBoss server locally in my system and tried conencting with JMSClient. There are no errors and message is posted to server …
[View More]TOPIC.
I forgot to mention that I tested from my client setup in Bangalore, India office and my JBoss server is runing in a solaris box in UK.
So I setup the client in one of the UK windows box and tried the same execise, now I get a different error as below
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2010-05-28 16:15:21,292 ERROR *org.jboss.remoting.transport.bisocket.BisocketServerInvoker [] - unable to create control connection after 10 retries*
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.createControlConnection(BisocketServerInvoker.java:258)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
at org.jboss.remoting.Client.addListener(Client.java:921)
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)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
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.createTopicConnection(JBossConnectionFactory.java:115)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)
at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)
at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)
at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)
at java.lang.Thread.run(Unknown Source)
2010-05-28 16:15:21,479 ERROR org.jnexus.plugins.jms.dom.JMSTopic [] - *JMS: Connection to /acme/MyExampleConnectionFactory topic/CyrusWorkstationTopic failed.*
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.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
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.createTopicConnection(JBossConnectionFactory.java:115)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)
at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)
at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)
at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)
at java.lang.Thread.run(Unknown Source)
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.createControlConnection(BisocketServerInvoker.java:258)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
at org.jboss.remoting.Client.addListener(Client.java:921)
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)
... 13 more
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also as you have suggested, I removed the entry 'secondaryConnectPort' from the remoting-bisocket-service.xml file and kept only the below entry
<attribute name="secondaryBindPort">14000</attribute>
Is any other setting required to avoid this error?
And I think the error which I reported earlier may be due to a firewall between my Bangalore box and UK box
Regards,
Prabhu
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545310#545310]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
[View Less]
14 years, 9 months