[rabbitmq-discuss] Rabbit client works from one machine but not another

Tim Watson watson.timothy at gmail.com
Fri Mar 22 07:59:28 GMT 2013


Hi,

Just because you can open a socket doesn't mean the whole protocol is going to work. Are you sure no packet filtering goes on in the troublesome location?

On 21 Mar 2013, at 17:28, Steve Leibman <sleibman at gmail.com> wrote:

> Update: these same observations are true even if I point my clients to dev.rabbitmq.com.
> I can connect to 5672 on dev.rabbitmq.com from either machine (e.g. using telnet), but my rabbit client fails from one of the two machines with the exception shown previously.
> 
> On Thursday, March 21, 2013 1:17:43 PM UTC-4, Steve Leibman wrote:
> Hi,
> 
> I have RabbitMQ client code (I've reproduced the issue with just the sample consumer code from http://www.rabbitmq.com/tutorials/tutorial-one-java.html ) that works fine from one machine, but not from another (both attempting to connect to the same broker/server). The machine that fails to run this successfully is in a completely different location, with its own firewall rules, so the first obvious thing to check is connectivity to tcp port 5672 on the server machine, and I have confirmed (via both "telnet <hostname> 5672" and via a simple java program that runs new Socket("<hostname>", 5672) ) that basic connectivity works fine.
> 
> My exception stack trace is shown below.
> 
> Any suggestions for next steps?
> 
> Exception in thread "main" java.io.IOException
> 	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
> 	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
> 	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:360)
> 	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:516)
> 	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)
> 	at Recv.main(Recv.java:15)
> Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.net.SocketException: Connection reset
> 	at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
> 	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
> 	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)
> 	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:313)
> 	... 3 more
> Caused by: java.net.SocketException: Connection reset
> 	at java.net.SocketInputStream.read(SocketInputStream.java:189)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:121)
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
> 	at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
> 	at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
> 	at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:131)
> 	at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:515)
> 
> Thanks,
> Steve Leibman
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130322/4304ea2e/attachment.htm>


More information about the rabbitmq-discuss mailing list