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 <[email protected]> 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 > [email protected] > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss -- You received this message because you are subscribed to the Google Groups "rabbitmq-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rabbitmq-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
