Sandy Patel
Sandy Patel

Reputation: 45

Error: The JMS Connection has failed: java.io.EOFException

org.apache.activemq.ConnectionFailedException: The JMS connection has failed: java.io.EOFException
at org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1480)
at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:324)

Any solution for this appreciated?

Upvotes: 3

Views: 7993

Answers (2)

vishal rathod
vishal rathod

Reputation: 139

We have faced the same issue. Reason which we have found is that we were starting the Publisher/Producer before starting the JMS Broker . As we know after starting JMS Broker only Publisher/Producer is established the connection with JSM Broker .

We have take the following approach and problem is solved.

Solution: Please first start JMS Broker then Publisher/Producer and then Consumer.

enter image description here

Upvotes: 1

Justin Bertram
Justin Bertram

Reputation: 35122

The underlying exception reported by the ActiveMQ JMS client implementation is a java.io.EOFException. The documentation for this exception states:

Signals that an end of file or end of stream has been reached unexpectedly during input.

This exception is mainly used by data input streams to signal end of stream. Note that many other input operations return a special value on end of stream rather than throwing an exception.

Therefore it appears that the network connection between the client and server failed. The specific root cause for the failure cannot be determined by the information you have provided.

Upvotes: 4

Related Questions