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 5B55A8897 for ; Mon, 5 Sep 2011 18:32:33 +0000 (UTC) Received: (qmail 63877 invoked by uid 500); 5 Sep 2011 18:32:33 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 63647 invoked by uid 500); 5 Sep 2011 18:32:32 -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 63636 invoked by uid 99); 5 Sep 2011 18:32:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 18:32:31 +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; Mon, 05 Sep 2011 18:32:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09B6559CC7 for ; Mon, 5 Sep 2011 18:32:10 +0000 (UTC) Date: Mon, 5 Sep 2011 18:32:10 +0000 (UTC) From: "Frank Gynnild (JIRA)" To: dev@activemq.apache.org Message-ID: <203213649.17689.1315247530036.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1345236469.38258.1313411607125.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQNET-339) 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-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank Gynnild updated AMQNET-339: --------------------------------- Attachment: InactivityMonitor.cs I made a patch to InactivityMonitor.cs. With these changes I've been unable to reproduce the issue. Can someone do a diff and include the changes to trunk? That would be great. > NullReferenceException from Apache.NMS.ActiveMQ.Transport.InactivityMonitor > --------------------------------------------------------------------------- > > Key: AMQNET-339 > URL: https://issues.apache.org/jira/browse/AMQNET-339 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.5.1 > Environment: Windows Server 2008 R2 > .NET 4 > Reporter: Stein J. Gran > Assignee: Jim Gomes > Priority: Critical > Attachments: InactivityMonitor.cs > > > Using NMS in a Windows service, which crashes with the following entry in the Event Log: > Log Name: Application > Source: .NET Runtime > Date: 04.08.2011 02:30:00 > Event ID: 1026 > Task Category: None > Level: Error > Keywords: Classic > User: N/A > Computer: dev-162.hq.infofinder.no > Description: > Application: IFExchangeFetch.exe > Framework Version: v4.0.30319 > Description: The process was terminated due to an unhandled exception. > Exception Info: System.NullReferenceException > Stack: > at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.WriteCheck() > at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.CheckConnection(System.Object) > at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) > at System.Threading._TimerCallback.PerformTimerCallback(System.Object) > Event Xml: > > > > 1026 > 2 > 0 > 0x80000000000000 > > 1047 > Application > dev-162.hq.infofinder.no > > > > Application: IFExchangeFetch.exe > Framework Version: v4.0.30319 > Description: The process was terminated due to an unhandled exception. > Exception Info: System.NullReferenceException > Stack: > at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.WriteCheck() > at Apache.NMS.ActiveMQ.Transport.InactivityMonitor.CheckConnection(System.Object) > at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) > at System.Threading._TimerCallback.PerformTimerCallback(System.Object) > > > > The unfortunate thing here is that the entire service crashes due to this error. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira