You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Krzysztof Porębski (Jira)" <ji...@apache.org> on 2021/02/24 08:09:00 UTC

[jira] [Commented] (AMQNET-640) ArgumentOutOfRangeException in StringBuilder.ToString() after updating from 1.8.0 to 1.8.1

    [ https://issues.apache.org/jira/browse/AMQNET-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17289758#comment-17289758 ] 

Krzysztof Porębski commented on AMQNET-640:
-------------------------------------------

[~MarcGerritsen] It seems that you're using the producer concurrently. If that's the case, please be mindful that NMS producers are not thread-safe. 

> ArgumentOutOfRangeException in StringBuilder.ToString() after updating from 1.8.0 to 1.8.1
> ------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-640
>                 URL: https://issues.apache.org/jira/browse/AMQNET-640
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.7.2
>            Reporter: Marc Gerritsen
>            Priority: Major
>
> After updating from 1.8.0 to 1.8.1 I get this error. The internet expects the access to the StringBuilder is not thread save.
> Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'chunkLength') System.ArgumentOutOfRangeException ArgumentOutOfRangeException System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'chunkLength')
> at System.Text.StringBuilder.ToString()
> at Apache.NMS.AMQP.Message.DefaultMessageIdBuilder.CreateMessageId(String producerId, Int64 messageSequence)
> at Apache.NMS.AMQP.NmsSession.Send(NmsMessageProducer producer, IDestination destination, IMessage original, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean disableMessageId, Boolean disableMessageTimestamp)
> at Apache.NMS.AMQP.NmsMessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)