[ 
https://issues.apache.org/jira/browse/AMQ-5572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

gaikwaja updated AMQ-5572:
--------------------------
          Description: 
A similar issue[AMQ-3284] appears already as fixed in 5.6 ,has this regressed 
in 5.11 ?


In WebSocket transport, StompSocket class calls StompFrame.toString() instead 
StompFrame.format(). Because of this, some frames can be truncated.

I have same problem as  https://issues.apache.org/jira/browse/AMQ-3284
I use samples/websocket example ,for connection to the apache-activemq-5.11.0 
or apollo(1.7.1) broker,and sending  message to the queue using websockets. 
On the other end is a cpp(3.8.3) client consumer listening on that queue.(from 
examples/stomp/cpp) 
My cpp consumer is able to receive the message but the Body of message is 
NilContent i.e  truncated completely 
This jira has been marked as fixed in 5.6,is it possible it has regressed in 
latest release or apollo 1.7.1? 

STOMP LOGS : 

2015-02-09 03:07:00,575 | TRACE | received frame: 
StompFrame(SEND,List((destination,/topic/test), 
(content-length,41)),BufferContent(ascii: this is test message over websocket 
stomp),true,List()) | 
2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
2015-02-09 03:07:00,576 | TRACE | sending frame: 
StompFrame(MESSAGE,List((destination,/topic/test), 
(content-length,41)),BufferContent(ascii: this is test message over websocket 
stomp),true,List((subscription,ID:mylpadeci10-57515-1423451149856-0:0:1:1), 
(message-id,hw-1e2))) | 
2015-02-09 03:07:00,576 | TRACE | sending frame: 
StompFrame(MESSAGE,List((destination,/topic/test), 
(content-length,41)),BufferContent(ascii: this is test message over websocket 
stomp),true,List((subscription,sub-0), (message-id,hw-1e2))) | 
2015-02-09 03:07:00,576 | TRACE | received frame: 
StompFrame(ACK,List((message-id,hw-1e2)),NilContent,true,List()) | 


P.S 
I have also tried the same with apache-activemq-5.11.0 and verified that the 
issue exists there as well
 

  was:
In WebSocket transport, StompSocket class calls StompFrame.toString() instead 
StompFrame.format(). Because of this, some frames can be truncated.


    Affects Version/s:     (was: 5.5.0)
                       5.11.0

> Regression WebSockets and truncated body
> ----------------------------------------
>
>                 Key: AMQ-5572
>                 URL: https://issues.apache.org/jira/browse/AMQ-5572
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.11.0
>            Reporter: gaikwaja
>            Assignee: Dejan Bosanac
>             Fix For: 5.6.0
>
>
> A similar issue[AMQ-3284] appears already as fixed in 5.6 ,has this regressed 
> in 5.11 ?
> In WebSocket transport, StompSocket class calls StompFrame.toString() instead 
> StompFrame.format(). Because of this, some frames can be truncated.
> I have same problem as  https://issues.apache.org/jira/browse/AMQ-3284
> I use samples/websocket example ,for connection to the apache-activemq-5.11.0 
> or apollo(1.7.1) broker,and sending  message to the queue using websockets. 
> On the other end is a cpp(3.8.3) client consumer listening on that 
> queue.(from examples/stomp/cpp) 
> My cpp consumer is able to receive the message but the Body of message is 
> NilContent i.e  truncated completely 
> This jira has been marked as fixed in 5.6,is it possible it has regressed in 
> latest release or apollo 1.7.1? 
> STOMP LOGS : 
> 2015-02-09 03:07:00,575 | TRACE | received frame: 
> StompFrame(SEND,List((destination,/topic/test), 
> (content-length,41)),BufferContent(ascii: this is test message over websocket 
> stomp),true,List()) | 
> 2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
> 2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
> 2015-02-09 03:07:00,575 | DEBUG | producer route attaching to consumer. | 
> 2015-02-09 03:07:00,576 | TRACE | sending frame: 
> StompFrame(MESSAGE,List((destination,/topic/test), 
> (content-length,41)),BufferContent(ascii: this is test message over websocket 
> stomp),true,List((subscription,ID:mylpadeci10-57515-1423451149856-0:0:1:1), 
> (message-id,hw-1e2))) | 
> 2015-02-09 03:07:00,576 | TRACE | sending frame: 
> StompFrame(MESSAGE,List((destination,/topic/test), 
> (content-length,41)),BufferContent(ascii: this is test message over websocket 
> stomp),true,List((subscription,sub-0), (message-id,hw-1e2))) | 
> 2015-02-09 03:07:00,576 | TRACE | received frame: 
> StompFrame(ACK,List((message-id,hw-1e2)),NilContent,true,List()) | 
> P.S 
> I have also tried the same with apache-activemq-5.11.0 and verified that the 
> issue exists there as well
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to