title: ActiveMQ - java.io.EOFException
body: <p>There appear to be a few posts relating to a java.io.EOFException WARN message that intermittently appears (reproduced below) but none that provide details on how to fix the issue. Firstly I assume that as it is a WARN message that it should not be ignored? Otherwise an INFO or DEBUG message would be output? </p>
  
  <p>I have a simple consumer/publisher on my workstation and have ActiveMQ running on 2 VMs (Tried both 5.10.0 and 5.14.1) </p>
  
  <p>The transport connector for each VM is:</p>
  
  <pre><code>    &lt;transportConnector name="openwire" 
  uri="tcp://&lt;IPAddress2&gt;:61616?maximumConnections=1000&amp;
  amp;wireFormat.maxFrameSize=104857600"/&gt;
  </code></pre>
  
  <p>Network connectors:</p>
  
  <pre><code>&lt;networkConnector name="&lt;host1&gt;"
      uri="static:(tcp://&lt;IPAddress1&gt;:61616)"
      networkTTL="3"/&gt;
  </code></pre>
  
  <p>On my consumer/publisher I have the broker-url:</p>
  
  <pre><code>failover:(tcp://&lt;IPAddress1&gt;:61616,tcp://&lt;IPAddress2&gt;:61616)?randomize=false
  </code></pre>
  
  <p>so that I have a master/slave deployment.</p>
  
  <p>Any ideas what I may have wrong?</p>
  
  <blockquote>
    <p>WARN [publisher] FailoverTransport (FailoverTransport.java:260) -
    Transport (tcp:///:61616@46603) failed, reason:  ,
    attempting to automatically reconnect java.io.EOFException    at
    java.io.DataInputStream.readInt(DataInputStream.java:392)     at
    org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:258)
      at
    org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:221)
      at
    org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:213)
      at
    org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
      at java.lang.Thread.run(Thread.java:745)</p>
  </blockquote>