[rabbitmq-discuss] SimpleConsumer EOFException
Susheel Daswani
sdaswani at gmail.com
Wed Feb 8 21:48:54 GMT 2012
Hey there!
I am using the RabbitMQ SimpleConsumer example to subscribe to a
message queue, but I am frequently seeing the following exception (I
have redacted the machine and queue information):
-------------
bash-3.2$ ./build/dist/runjava.sh com.rabbitmq.examples.SimpleConsumer
'amqp://****:****@****/****' '****'
Main thread caught exception:
com.rabbitmq.client.ShutdownSignalException: connection error; reason:
java.io.EOFException
com.rabbitmq.client.ShutdownSignalException: connection error; reason:
java.io.EOFException
at com.rabbitmq.client.QueueingConsumer.handle(QueueingConsumer.java:
198)
at
com.rabbitmq.client.QueueingConsumer.nextDelivery(QueueingConsumer.java:
214)
at com.rabbitmq.examples.SimpleConsumer.main(SimpleConsumer.java:41)
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)
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:492)
-------------
Any ideas why this is occurring? Is this likely a problem with
SimpleConsumer or with the RabbitMQ?
Thanks!
Susheel
More information about the rabbitmq-discuss
mailing list