[rabbitmq-discuss] Rabbit client works from one machine but not another
Steve Leibman
sleibman at gmail.com
Thu Mar 21 17:17:43 GMT 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130321/835eb018/attachment.htm>
More information about the rabbitmq-discuss
mailing list