[rabbitmq-discuss] error PossibleAuthenticationFailureException

姚辉 176047528 at qq.com
Fri Dec 17 01:35:43 GMT 2010


When i used java client connect to a broker server, i got a error like this:
  
 Exception in thread "main" com.rabbitmq.client.PossibleAuthenticationFailureException: Possibly caused by authentication failure
        at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:288)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:379)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:399)
        at java_receive.main(java_receive.java:14)
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:342)
        at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:215)
        at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:286)
        ... 3 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:155)
        at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:393)
        at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:421)
  
 the code
   Connection conn = null;
  conn = factory.newConnection();
   factory.setHost("192.168.0.202");  //local ip address
  Channel chan = conn.createChannel(); //error here
  
 if i use setHost("localhost"), it's ok.  someone can tell why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20101217/7fa5959c/attachment.htm>


More information about the rabbitmq-discuss mailing list