You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "David Holroyd (JIRA)" <ji...@apache.org> on 2007/09/28 17:38:23 UTC

[jira] Commented: (AMQNET-67) System.Messaging.Message.Label can't be set to null

    [ https://issues.apache.org/activemq/browse/AMQNET-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40220 ] 

David Holroyd commented on AMQNET-67:
-------------------------------------

I can't see a way to change the status of the patch to grant use under the ASF license, so let me just state here that this was the intention.

> 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.