Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-611

Apache.NMS.IllegalStateException is throw on transport thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • AMQP, NMS
    • None

    Description

      Found this while looking at changes for AMQNET-610. While trying to shutdown a connection the NMS amqp provider throws an exception on the transport thread.

       Havret has proposed a solution in PR 29, see https://github.com/apache/activemq-nms-amqp/pull/29#issuecomment-530123108

      Here is the exception:

      Exception occurred: Apache.NMS.IllegalStateException: The Session is closed
      at Apache.NMS.AMQP.NmsSession.CheckClosed()
      at Apache.NMS.AMQP.NmsSession.get_AcknowledgementMode()
      at Apache.NMS.AMQP.NmsMessageConsumer.SetAcknowledgeCallback(InboundMessageDispatch envelope)
      at Apache.NMS.AMQP.NmsMessageConsumer.OnInboundMessage(InboundMessageDispatch envelope)
      at Apache.NMS.AMQP.NmsSession.OnInboundMessage(InboundMessageDispatch envelope)
      at Apache.NMS.AMQP.NmsConnection.OnInboundMessage(InboundMessageDispatch envelope)
      at Apache.NMS.AMQP.Provider.Failover.FailoverProvider.OnInboundMessage(InboundMessageDispatch envelope)
      at Apache.NMS.AMQP.Provider.Amqp.AmqpConsumer.OnMessage(IReceiverLink receiver, Message amqpMessage)
      at Amqp.ReceiverLink.OnTransfer(Delivery delivery, Transfer transfer, ByteBuffer buffer)
      at Amqp.Session.OnTransfer(Transfer transfer, ByteBuffer buffer)
      at Amqp.Connection.OnFrame(ByteBuffer buffer)
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cmorgan Chris Morgan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m