Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77A9A7A92 for ; Wed, 31 Aug 2011 12:22:36 +0000 (UTC) Received: (qmail 90751 invoked by uid 500); 31 Aug 2011 12:22:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 90433 invoked by uid 500); 31 Aug 2011 12:22:34 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 89936 invoked by uid 99); 31 Aug 2011 12:22:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 12:22:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 12:22:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E984643129 for ; Wed, 31 Aug 2011 12:22:09 +0000 (UTC) Date: Wed, 31 Aug 2011 12:22:09 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1726024210.2283.1314793329953.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <680543284.1810.1314778149823.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (AMQ-3480) Channel was inactive for too long when client and broker aren't correctly time synchronized. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQ-3480. ----------------------------- Resolution: Duplicate This is most like a duplicate of AMQ-3414. Try using a nightly SNAPSHOT of 5.6 > Channel was inactive for too long when client and broker aren't correctly time synchronized. > -------------------------------------------------------------------------------------------- > > Key: AMQ-3480 > URL: https://issues.apache.org/jira/browse/AMQ-3480 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.4.2 > Environment: ActiveMQ Client : 4.1.2 > ActiveMQ broker : 5.4.2 > Machine A and B run over Window > Reporter: David Wursteisen > > Hello, > We encurred an issue with activeMQ 5.4.2 : > We've got a activeMQ client (version 4.1.2) which is connected to a activeMQ broker 5.4.2. After few minutes, we've got this stacktrace in the broker : > {quote} > 2011-08-29 16:41:12,844 INFO [org.apache.activemq.transport.failover.FailoverTransport] Transport failed, attempting to automatically reconnect due to: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long. > org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long. > at org.apache.activemq.transport.InactivityMonitor.readCheck(InactivityMonitor.java:102) > at org.apache.activemq.transport.InactivityMonitor.access$000(InactivityMonitor.java:35) > at org.apache.activemq.transport.InactivityMonitor$1.run(InactivityMonitor.java:51) > at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431) > at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198) > at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:189) > at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:213) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > 2011-08-29 16:41:12,860 INFO [org.apache.activemq.transport.failover.FailoverTransport] Transport failed, attempting to automatically reconnect due to: java.net.SocketException: socket closed > java.net.SocketException: socket closed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:49) > at org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:56) > at java.io.DataInputStream.readInt(DataInputStream.java:353) > at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:267) > at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136) > at java.lang.Thread.run(Thread.java:595) > {quote} > We first thinking that it was a network issue, but we just discovered that the machine where the broker is runing isn't correctly time synchronized. For example : > at 14:00, it's 14:00 on the machine, but at 14:30, it will be 14:50, then NTP service will set the time to 14:30.... > With an activeMQ 4.1.2 for the broker, we didn't get this issue. So, for us, this is a regretion (even if the time problem on the broker machine isn't helping) > To reproduce the problem : > create a standard broker on computer A > create a standard client on computer that will be connected to the computer A using failover transport. > after several time, change the time on computer A (ie : it's 14:00:00, set the time to 13:00:00) > After several seconds, the client & the broker will close the connection with the message Channel was inactive for too long. > Regards -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira