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

Ted Ross commented on PROTON-31:
--------------------------------

If the sender is modified to construct a new Message object for each loop, the 
problem goes away.  It appears that the issue is related to the reuse of the 
message object in the sender.

                
> Message Corruption in point-to-point transfer via messenger
> -----------------------------------------------------------
>
>                 Key: PROTON-31
>                 URL: https://issues.apache.org/jira/browse/PROTON-31
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>            Reporter: Ted Ross
>         Attachments: send1.py
>
>
> Using a modified version of the send.py messenger example (attached) and 
> sending messages point-to-point from sender to receiver, messages become 
> corrupted.
> Output from the receiver:
> {{
> $ ./recv.py //~0.0.0.0/queue1
> //0.0.0.0/queue1 (no subject) Message:0
> //0.0.0.0/queue1 (no subject) Message:1
> //0.0.0.0/queue1 (no subject) Message:2
> //0.0.0.0/queue1 (no subject) Message:3
> //0.0.0.0/queue1 (no subject) H(�]
> //0.0.0.0/queue1 (no subject) Message:5
> //0.0.0.0/queue1 (no subject) Message:6
> //0.0.0.0/queue1 (no subject) Message:7
> //0.0.0.0/queue1 (no subject) Message:8
> //0.0.0.0/queue1 (no subject) Message:9
> //0.0.0.0/queue1 (no subject) Message:10
> //0.0.0.0/queue1 (no subject) Message:11
> //0.0.0.0/queue1 (no subject) Message:12
> //0.0.0.0/queue1 (no subject) Message:13
> //0.0.0.0/queue1 (no subject) Message:14
> //0.0.0.0/queue1 (no subject) Message:15
> //0.0.0.0/queue1 (no subject) Message:16
> //0.0.0.0/queue1 (no subject) Message:17
> //0.0.0.0/queue1 (no subject) Message:18
> //0.0.0.0/queue1 (no subject) Message:19
> //0.0.0.0/queue1 (no subject) Message:20
> //0.0.0.0/queue1 (no subject) Message:21
> //0.0.0.0/queue1 (no subject) Message:22
> //0.0.0.0/queue1 (no subject) Message:23
> //0.0.0.0/queue1 (no subject) Message:24
> //0.0.0.0/queue1 (no subject) Message:25
> //0.0.0.0/queue1 (no subject) Message:26
> //0.0.0.0/queue1 (no subject) Message:27
> //0.0.0.0/queue1 (no subject) Message:28
> //0.0.0.0/queue1 (no subject) Message:29
> //0.0.0.0/queue1 (no subject) Message:30
> //0.0.0.0/queue1 (no subject) Message:31
> //0.0.0.0/queue1 (no subject) Message:32
> //0.0.0.0/queue1 (no subject) Message:33
> //0.0.0.0/queue1 (no subject) Message:34
> [-4]: error decoding message: (null)
> [-4]: error decoding message: (null)
> [-4]: error decoding message: (null)
> [-4]: error decoding message: (null)
> }}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to