You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by chain ho <ch...@gmail.com> on 2013/03/11 09:54:14 UTC

ActiveMQ 5.4.3 will log EOFException when remoe ConnectionFactory

Hi,my question like this:

In my JEE Application Server, I create a destination and a
QueueConnectionFactory. Then I use a servlet to send and receive message.
after a while, I want to remore the resource like destination and
connectionfactory. When I remove the connectionfactory ,the ActiveMQ console
will log like this:
 INFO | Transport failed: java.io.EOFException
 INFO | Transport failed: java.io.EOFException
 INFO | Transport failed: java.io.EOFException
 INFO | Transport failed: java.io.EOFException

in log File, like this:
2013-03-11 16:21:02,954 | INFO  | Transport failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:63174
2013-03-11 16:21:02,955 | INFO  | Transport failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:63179
2013-03-11 16:21:02,955 | INFO  | Transport failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:63176

My connectionfactory's min pool size is 8. And in Jconsole, only 1 is in
used, 7 is free. so I will get 7 EOFException. When I set the min pool size
is 2. Then I will get 1 EOFException.

I have debug activemq source code. In  TcpTransport.java  line 523  "  
socket.close(); " execute, the exception will throw.

When I use ActiveMQ 4.1, this problem will not occure. In AcctiveMQ5.8, the
log level is "WARN" and log like:
2013-03-07 14:31:08,913 | WARN  | Transport Connection to:
tcp://127.0.0.1:60745 failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:60745@61616
2013-03-07 14:31:08,913 | WARN  | Transport Connection to:
tcp://127.0.0.1:60746 failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:60746@61616
2013-03-07 14:31:08,913 | WARN  | Transport Connection to:
tcp://127.0.0.1:60747 failed: java.io.EOFException |
org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ
Transport: tcp:///127.0.0.1:60747@61616

My activemq.xml is default config. 

I had Google many times, but can't solve it. In this
Message:http://activemq.2283324.n4.nabble.com/Continuous-Transport-Failures-Moments-Before-STOMP-Connections-Close-td2952079.html
, dejanb say just ignore it.

So, what is the right solution to this problem?  Anyone know what’s going on
here?

Regards, 
Chain HO






--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-4-3-will-log-EOFException-when-remoe-ConnectionFactory-tp4664595.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.