<DIV>When i used java client connect to a broker server, i got a error like this:</DIV>
<DIV> </DIV>
<DIV>Exception in thread "main" com.rabbitmq.client.PossibleAuthenticationFailureException: Possibly caused by authentication failure<BR> at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:288)<BR> at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:379)<BR> at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:399)<BR> at java_receive.main(java_receive.java:14)<BR>Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException<BR> at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:81)<BR> at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:47)<BR> at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:342)<BR> at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:215)<BR> at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:286)<BR> ... 3 more<BR>Caused by: java.io.EOFException<BR> at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)<BR> at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:118)<BR> at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:155)<BR> at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:393)<BR> at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:421)</DIV>
<DIV> </DIV>
<DIV>the code</DIV>
<DIV> Connection conn = null;<BR> conn = factory.newConnection();</DIV>
<DIV> factory.setHost("192.168.0.202"); //local ip address<BR> Channel chan = conn.createChannel(); //error here</DIV>
<DIV> </DIV>
<DIV>if i use setHost("localhost"), it's ok. someone can tell why?</DIV>