Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 885127B8D for ; Mon, 18 Jul 2011 13:44:23 +0000 (UTC) Received: (qmail 89145 invoked by uid 500); 18 Jul 2011 13:44:23 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 89062 invoked by uid 500); 18 Jul 2011 13:44:22 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 89038 invoked by uid 99); 18 Jul 2011 13:44:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 13:44:22 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 13:44:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9CB1141426 for ; Mon, 18 Jul 2011 13:43:57 +0000 (UTC) Date: Mon, 18 Jul 2011 13:43:57 +0000 (UTC) From: "Manu Agarwal (JIRA)" To: dev@activemq.apache.org Message-ID: <101252702.188.1310996637623.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AMQ-3402) Stomp over Websocket truncates the message body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stomp over Websocket truncates the message body ----------------------------------------------- Key: AMQ-3402 URL: https://issues.apache.org/jira/browse/AMQ-3402 Project: ActiveMQ Issue Type: Bug Components: Connector Affects Versions: 5.5.0 Environment: Ubuntu 10.1 Reporter: Manu Agarwal I am using websocket for receiving messages over a queue using java script. This works fine for smaller messages, but for large messages the message.body truncates the message and also, JSON.parse(message.body) fails. Is there a limit for the message size in Websockets. I using java script (stomp.js) and trying to publish the messages on a web page. Please find below the code snippet, var url = "ws://manu.rsi.com:61614/stomp"; var client = Stomp.client(url); var tmp_destination = '/temp-queue/temp'; function requestBlockInfo() { client.send('/queue/UI.Graph.Test.Q', {'reply-to': tmp_destination, 'command': 'blockinfo'}, "msg"); client.subscribe(tmp_destination,function(message) { alert(message.body); processMessage(JSON.parse(message.body)); }); }; onconnect = function(frame){ requestBlockInfo(); }; error_callback = function(error){ alert(error.headers.message); }; var r = client.connect("", "" ,onconnect, error_callback); When at the webpage, I received the message.body for message.body leangth greater then 60, it puts ... in between the message and truncates the message, so that its body length is 60. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira