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

System.Messaging.Message.Label can't be set to null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • MSMQ
    • None
    • Patch Available

    Description

      NMS MSMQ code tries to set the Label property of messages to the NMSType of the NMS message, even if that property isn't defined. Setting the property to null fails with an exception:

      Unhandled Exception: System.ArgumentNullException: Value cannot be null.
      Parameter name: value
         at System.Messaging.Message.set_Label(String value)
         at MSMQ.DefaultMessageConverter.ToMsmqMessage(IMessage message)
         at MSMQ.MessageProducer.Send(IDestination destination, IMessage imessage, Boolean persistent, Byte priority, TimeSpan timeToLive)
         at MSMQ.MessageProducer.Send(IDestination destination, IMessage message)
         at MSMQ.MessageProducer.Send(IMessage message)
      

      Attachments

        Activity

          People

            jstrachan James Strachan
            dholroyd David Holroyd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: