[rabbitmq-discuss] RabbitMQ ConnectionFactory newConnection issue
Emile Joubert
emile at rabbitmq.com
Wed Jun 2 15:13:44 BST 2010
Hi Susantha,
A possible cause of this error is authentication failure. The rabbit
broker has possibly been configured not to accept default credentials
that the tests and demos expect.
If authentication failure is not the root cause of the problem then
please let me know the version of the broker and the java client (or
source revision if compiled from source) you are using. Please also
attach the relevant parts of rabbit.log and rabbit-sasl.log for the
period of the failed test.
Regards
Emile
susantha senevirathna wrote:
>
> Hi All,
> I have configured RabbitMQ in my windows machine.It is working
> properly.However I try to run rabbitmq "ConsumerMain" sample.It has
> given following error.So i tried to resolve that matter but i couldnt
> achive yet.If you can help me sort out this issue ,I will be glad.Please
> help me.I have mentioned that exception below.
>
>
> Main thread caught exception: java.io.IOException
> java.io.IOException
> at com.rabbitmq.client.impl.
> AMQChannel.wrap(AMQChannel.java:121)
> at
> com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:139)
> 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)
> at com.rabbitmq.examples.ConsumerMain.main(ConsumerMain.java:76)
> Caused by: com.rabbitmq.client.ShutdownSignalException: connection
> error; reason: java.io.EOFException
> at
> com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:81)
> at
> com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:47)
> at
> com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:336)
> at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:209)
> at
> com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:133)
> ... 6 more
> Caused by: java.io.EOFException
> at
> java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)
> at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:118)
> at
> com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:133)
> at
> com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:367)
> at
> com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:408)
> Java Result: 1
>
> regards,
> Susantha
More information about the rabbitmq-discuss
mailing list