ActiveMQ .Net
  1. ActiveMQ .Net
  2. AMQNET-402

Application crashes due to unhandled exception from NMS API

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.7, 1.6.0
    • Component/s: NMS
    • Labels:
      None
    • Environment:

      ActiveMQ apache-activemq-5.5.0
      Apache.NMS.ActiveMQ v1.5.5
      Java 1.6.0.27
      Operating System: Windows 2008 Server

      Description

      The application crashes due to an unhandled exception from NMS API. The "NullReferenceException" from Apache.NMS.ActiveMQ.Transport.InactivityMonitor.WriteCheck() is logged in event viewer.

      With reference to https://issues.apache.org/jira/browse/AMQNET-339, already null check is done for asyncWriteTask in WriteCheck(). But still with that fix, we got the unhandled null reference exception. After checking null for asyncTasks before calling "this.asyncTasks.Wakeup();", our issue was fixed and we didnot get any further exception from WriteCheck().

        Issue Links

          Activity

          Hide
          Timothy Bish added a comment -

          Added additional logic to protect against this error.

          Show
          Timothy Bish added a comment - Added additional logic to protect against this error.

            People

            • Assignee:
              Timothy Bish
              Reporter:
              Oswin D
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development