[rabbitmq-discuss] debugging via Java client causes handshake timeout?

Shane shane at digitalsanctum.com
Fri Jun 11 18:35:43 BST 2010


I've consistently got a handshake timeout connecting to RabbitMQ
running locally when I run test code via my IDE's debugger. Here's the
rabbit log output:

=INFO REPORT==== 11-Jun-2010::13:23:21 ===
accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:2108

=INFO REPORT==== 11-Jun-2010::13:23:21 ===
starting TCP connection <0.173.0> from 127.0.0.1:2108

=ERROR REPORT==== 11-Jun-2010::13:23:31 ===
exception on TCP connection <0.173.0> from 127.0.0.1:2108
{handshake_timeout,frame_header}

=INFO REPORT==== 11-Jun-2010::13:23:31 ===
closing TCP connection <0.173.0> from 127.0.0.1:2108

----
This is the exception from Java which I guess is happening because a
connection is never made?:

com.rabbitmq.client.AlreadyClosedException: clean connection shutdown;
reason: Attempt to use closed channel
	at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:
189)
	at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:216)
	at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:202)
	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:
133)
	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:
260)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
200)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
249)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
263)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
274)

----
My environment:
Windows XP
RabbitMQ Server 1.7.2
Java Client 1.7.2

If I run the same code NOT using my debugger, it's able to make a
connection and publish a message as expected. Is this a known issue or
is there a way to increase the timeout so I can use a debugger?


More information about the rabbitmq-discuss mailing list