System.Messaging.Message.Label can't be set to null
---------------------------------------------------
Key: AMQNET-67
URL: https://issues.apache.org/activemq/browse/AMQNET-67
Project: ActiveMQ .Net
Issue Type: Bug
Components: MSMQ
Reporter: David Holroyd
Assignee: James Strachan
Attachments: DefaultMessageConverter_null_label_check-patch.diff
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:
{noformat}
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)
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.