[rabbitmq-discuss] Rabbit client works from one machine but not another
sleibman at gmail.com
Fri Mar 22 15:06:38 GMT 2013
Hmm. Right. There is probably some sort of packet filtering in my way, but
I don't know how to tell, or in this case, how I can get it turned off.
Going for an ssh tunneling solution instead...
On Friday, March 22, 2013 3:59:28 AM UTC-4, hyperthunk wrote:
> 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
> Update: these same observations are true even if I point my clients to
> 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:
>> 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 Recv.main(Recv.java:15)
>> Caused by: com.rabbitmq.client.ShutdownSignalException: connection error;
>> reason: java.net.SocketException: Connection reset
>> 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)
>> Steve Leibman
> rabbitmq-discuss mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss