I get the exception below and JMS stop receiving messages? Any ideas?
<route> <from uri="jms:topic:MyTopic"></from> <to uri="mycomponent://."></to> </route>
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)
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.