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 2D5B4D24B for ; Fri, 7 Dec 2012 07:17:26 +0000 (UTC) Received: (qmail 12175 invoked by uid 500); 7 Dec 2012 07:17:25 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 11957 invoked by uid 500); 7 Dec 2012 07:17:23 -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 11633 invoked by uid 99); 7 Dec 2012 07:17:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 07:17:21 +0000 Date: Fri, 7 Dec 2012 07:17:21 +0000 (UTC) From: "Markus Karolus (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQNET-401) NullReferenceException from Apache.NMS.ActiveMQ.Transport.InactivityMonitor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQNET-401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13526188#comment-13526188 ] Markus Karolus commented on AMQNET-401: --------------------------------------- The stack trace: Exception='System.NullReferenceException: Object reference not set to an instance of an object. at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.WriteCheck() at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.CheckConnection(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading._TimerCallback.PerformTimerCallback(Object state)'." > NullReferenceException from Apache.NMS.ActiveMQ.Transport.InactivityMonitor > ---------------------------------------------------------------------------- > > Key: AMQNET-401 > URL: https://issues.apache.org/jira/browse/AMQNET-401 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.5.6 > Environment: Windows Server 2008 R2, .Net 4.0 > Reporter: Markus Karolus > Assignee: Jim Gomes > Priority: Critical > > It's the same problem which is descibed in, > https://issues.apache.org/jira/browse/AMQNET-339 > in the current version (1.5.6) the real problem is not fixed, so I created this new issue. > Today we had an crash on one of our enviromental boxes: > Directly after a failover we got the following message from the InactivityMonitor "InactivityMonitor[{0}]: Timer Task didn't shutdown properly." > Afterwards the whole process shuts down after an UnhandledException handling. In the WriteCheck method a NullReferenceException was thrown. > It seems that during the StopMonitorThreads the timer connectionCheckTimer couldn't stop correctly and ansyncTasks exists. Directly after that the asyncTasks will be set to null -> In the currenr running WriteCheck a NullReferenceException occures. > (This problem was already commented in AMQNET-339 as last comment from Matthew Good) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira