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 135ED9648 for ; Wed, 29 Feb 2012 17:52:20 +0000 (UTC) Received: (qmail 26707 invoked by uid 500); 29 Feb 2012 17:52:19 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 26634 invoked by uid 500); 29 Feb 2012 17:52:19 -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 26535 invoked by uid 99); 29 Feb 2012 17:52:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 17:52:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 29 Feb 2012 17:52:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 704BEC789C for ; Wed, 29 Feb 2012 17:51:58 +0000 (UTC) Date: Wed, 29 Feb 2012 17:51:58 +0000 (UTC) From: "Jim Gomes (Updated) (JIRA)" To: dev@activemq.apache.org Message-ID: <222410184.3715.1330537918461.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <453037906.17936.1330128228734.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQNET-370) Channel was inactive for too long does not recover 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/AMQNET-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Gomes updated AMQNET-370: ----------------------------- Attachment: nms-inactivityexception.log I have attached a log snippet of an Inactivity exception that I had from my client last night. This is using the latest NMS.ActiveMQ 1.5.x branch build. After recovery, I am able to send/receive messages without any problems. Here is my connection string: activemq:failover:(tcp://activemqhost:61616)?transport.StartupMaxReconnectAttempts=3&nms.PrefetchPolicy.All=50 Can you compare this log output with what your client logs? Maybe we can find out where the difference is. > Channel was inactive for too long does not recover > -------------------------------------------------- > > Key: AMQNET-370 > URL: https://issues.apache.org/jira/browse/AMQNET-370 > Project: ActiveMQ .Net > Issue Type: Bug > Components: ActiveMQ > Affects Versions: 1.5.1 > Environment: Windows .NET > Server is 5.4.2 on Windows server 2008. > Reporter: Matthew Good > Assignee: Jim Gomes > Attachments: nms-inactivityexception.log > > > I see many of these bugs about "Channel was inactive for too long" and they all get closed as incomplete because no one can determine the cause. So I won't ask for that. > The biggest problem here isn't that this one call fails, it's that the client does not recover or failover after this occurs so once this happens once, it continues for every request until the client application is restarted. In a production environment, we can't be restarting services all the time. > For services that are just listening, they stop receiving messages, no error is raised so we don't even know that it is in a bad state. > So please fix the failover to re-establish the connection(s) or whatever it must do so that the next call works since that is the intention of the failover protocol. > Apache.NMS.ActiveMQ.IOException: Channel was inactive for too long: tcp://ipc-393-pstg-05.ipcommerce.com:61616/ > at Apache.NMS.ActiveMQ.Connection.Oneway(Command command) > at Apache.NMS.ActiveMQ.Session..ctor(Connection connection, SessionId sessionId, AcknowledgementMode acknowledgementMode) > at Apache.NMS.ActiveMQ.Connection.CreateAtiveMQSession(AcknowledgementMode ackMode) > at Apache.NMS.ActiveMQ.Connection.CreateSession(AcknowledgementMode sessionAcknowledgementMode) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira