activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Gomes (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Commented] (AMQNET-339) NullReferenceException from Apache.NMS.ActiveMQ.Transport.InactivityMonitor
Date Wed, 17 Aug 2011 22:28:27 GMT

    [ https://issues.apache.org/jira/browse/AMQNET-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086647#comment-13086647
] 

Jim Gomes commented on AMQNET-339:
----------------------------------

I took a look at the code, and my initial suspect for a null pointer exception are the following
lines:

{noformat}
    this.asyncWriteTask.IsPending = true;
    this.asyncTasks.Wakeup();
{noformat}

The rest of the {{InactivityMonitor.WriteCheck()}} function is pretty simple.  Accessing the
{{asyncWriteTask}} member is the only one that has the possibility of being null.  I think
a simple hardening of the code that accesses this function would likely solve the problem.

As far as PDBs go, they should be included in the ZIP package under the debug folder.  You
can download it from here:

http://activemq.apache.org/nms/apachenmsactivemq-v151.html

(I just downloaded it, and they are included in the ZIP file.)

> 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
>
> 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:
> <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
>   <System>
>     <Provider Name=".NET Runtime" />
>     <EventID Qualifiers="0">1026</EventID>
>     <Level>2</Level>
>     <Task>0</Task>
>     <Keywords>0x80000000000000</Keywords>
>     <TimeCreated SystemTime="2011-08-04T00:30:00.000000000Z" />
>     <EventRecordID>1047</EventRecordID>
>     <Channel>Application</Channel>
>     <Computer>dev-162.hq.infofinder.no</Computer>
>     <Security />
>   </System>
>   <EventData>
>     <Data>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)
> </Data>
>   </EventData>
> </Event>
> 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

        

Mime
View raw message