Answer the question
In order to leave comments, you need to log in
Why doesn't the Java RabbitMQ client work on the local machine?
Installed and configured everything for RabbitMQ (otp_win64_17.5 and rabbitmq-server-3.5.3).
I made an example in C# , everything works fine.
I do the same example in Java , I get:
Exception in thread "main" java.io.IOException
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:350)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:621)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:648)
at Send.main(Send.java:20)
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:37)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:367)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:293)
... 3 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(Unknown Source)
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:536)
at java.lang.Thread.run(Unknown Source)
Answer the question
In order to leave comments, you need to log in
Is the host listed as "localhost"?
If so, what does "ping localhost" show?
Will the picture change if you specify "127.0.0.1" or any other address assigned to the machine (according to the list from "ifconfig -a")?
By the way, what is the axle?
Judging by C #, I believe that this is still Windows. But you never know, maybe it works with Mono.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question