1 Reply Latest reply on Mar 17, 2011 5:30 PM by Peter Chandler

    Camel & JMS & java.io.EOFException

    Peter Chandler Master

      I get the exception below and JMS stop receiving messages? Any ideas?

       

      Version: apache-activemq-5.4.0

       

      Camel Route:

      <route>
         <from uri="jms:topic:MyTopic"></from>
         <to uri="mycomponent://."></to>
      </route>
      

       

      Exception:

      2011-03-14 14:10:29,776 [ActiveMQ Transport: tcp://localhost/127.0.0.1:61616] DEBUG - Async exception with no exception listener: java.io.EOFException
      java.io.EOFException
              at java.io.DataInputStream.readInt(DataInputStream.java:375)
              at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269)
              at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:212)
              at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:204)
              at org.apache.activemq.transport.pct.TcpTransport.run(TcpTransport.java:187)
              at java.lang.Thread.run(Thread.java:619)
      

       

        • 1. Re: Camel & JMS & java.io.EOFException
          Peter Chandler Master

          I should have remember my old socket programming days. If you are reading a stream from a socket  and you get a incomplete read (only receive a portion of the data) you get a EOF return code from the OS.

           

          My connection to the JMS broker was terminate unexpectedly (not shutdown properly) during a read.   I set the "brokerURL" to "failover:(tcp://hostname:port)" which helps.