Another user had similar symptoms just a few days ago, and resolved the problem by setting keepalive=true on both the broker and the client. Does that solve the problem for you as well?
On Apr 5, 2017 12:18 AM, "absie" <a.b.sona...@gmail.com> wrote: > Hi > > I am new to ActiveMQ > > I have the vanilla set up of ActiveMQ on both a linux VM and a Windows box, > with no changes to activemq.xml file. > > Everytime I try to connect with the HelloWorld Java example on the ActiveMQ > page I get the following exception in the Client > ------------------------------------------------------------ > ----------------------------------------------------- > > Caused by: org.apache.activemq.transport.InactivityIOException: Cannot > send, > channel has already failed: tcp://192.168.1.83:61616 > at > org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend( > AbstractInactivityMonitor.java:327) > at > org.apache.activemq.transport.AbstractInactivityMonitor.oneway( > AbstractInactivityMonitor.java:316) > at > org.apache.activemq.transport.TransportFilter.oneway( > TransportFilter.java:94) > at > org.apache.activemq.transport.WireFormatNegotiator.oneway( > WireFormatNegotiator.java:116) > at > org.apache.activemq.transport.MutexTransport.oneway( > MutexTransport.java:68) > at > org.apache.activemq.transport.ResponseCorrelator.asyncRequest( > ResponseCorrelator.java:81) > at > org.apache.activemq.transport.ResponseCorrelator.request( > ResponseCorrelator.java:86) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket( > ActiveMQConnection.java:1386) > ... 4 more > javax.jms.JMSException: Cannot send, channel has already failed: > tcp://192.168.1.83:61616 > at > org.apache.activemq.util.JMSExceptionSupport.create( > JMSExceptionSupport.java:72) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket( > ActiveMQConnection.java:1413) > at > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent( > ActiveMQConnection.java:1478) > at > org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:527) > at > test.JMSActiveMQClientTest$HelloWorldProducer.run( > JMSActiveMQClientTest.java:65) > at java.lang.Thread.run(Unknown Source) > > In my ActiveMQ log - I also see the following exception > > 2017-04-04 13:45:38,017 | DEBUG | Transport Connection to: > tcp://192.168.1.83:38470 failed: java.io.EOFException | > org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ > Transport: tcp:///127.0.0.1:38470@61616 > java.io.EOFException > at java.io.DataInputStream.readInt(DataInputStream.java: > 392)[:1.8.0_121] > at > org.apache.activemq.openwire.OpenWireFormat.unmarshal( > OpenWireFormat.java:268)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.readCommand( > TcpTransport.java:240)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.doRun( > TcpTransport.java:232)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)[ > activemq-client-5.14.4.jar:5.14.4] > > > When I run a JMS client locally on the Linux box I also get the following > exception > > 2017-04-04 13:45:29,007 | DEBUG | Transport Connection to: > tcp://127.0.0.1:38464 failed: java.net.SocketException: Connection reset | > org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ > Transport: tcp:///127.0.0.1:38464@61616 > java.net.SocketException: Connection reset > at java.net.SocketInputStream.read(SocketInputStream.java: > 210)[:1.8.0_121] > at java.net.SocketInputStream.read(SocketInputStream.java: > 141)[:1.8.0_121] > at > org.apache.activemq.transport.tcp.TcpBufferedInputStream. > fill(TcpBufferedInputStream.java:50)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport$2.fill( > TcpTransport.java:634)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpBufferedInputStream. > read(TcpBufferedInputStream.java:59)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport$2.read( > TcpTransport.java:619)[activemq-client-5.14.4.jar:5.14.4] > at java.io.DataInputStream.readInt(DataInputStream.java: > 387)[:1.8.0_121] > at > org.apache.activemq.openwire.OpenWireFormat.unmarshal( > OpenWireFormat.java:268)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.readCommand( > TcpTransport.java:240)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.doRun( > TcpTransport.java:232)[activemq-client-5.14.4.jar:5.14.4] > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)[ > activemq-client-5.14.4.jar:5.14.4] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_121] > > > There are may post on the subject on the site but non of them seem to offer > a resolution for a standard installation. > > Can somebody please help. > > Thanks > > Absie > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/EOFException-in-5-14-0-Standard-Installation-tp4724543.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >