D
D
Denis2015-06-03 20:02:32
Java
Denis, 2015-06-03 20:02:32

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)

I can't understand what is the reason. If who faced prompt where to dig?
PS
1) I couldn't google anything.
2) Moreover,
a) from my machine, the java code pulls the rabbitmq server of another machine (on the network)
b) from the same machine, my rabbitmq server is also accessed without problems
c) but from my machine, access to my server leads to mistake

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wwarlock, 2015-06-11
@den_labs

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 question

Ask a Question

731 491 924 answers to any question