Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 26444 invoked from network); 27 Jul 2007 16:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jul 2007 16:07:10 -0000 Received: (qmail 73114 invoked by uid 500); 27 Jul 2007 16:07:10 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 73093 invoked by uid 500); 27 Jul 2007 16:07:10 -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 73079 invoked by uid 99); 27 Jul 2007 16:07:10 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 09:07:10 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 16:07:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 002BF714191 for ; Fri, 27 Jul 2007 09:06:48 -0700 (PDT) Message-ID: <8249349.1185552408967.JavaMail.jira@brutus> Date: Fri, 27 Jul 2007 09:06:48 -0700 (PDT) From: "Eddie Epstein (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-1308) Messages delivered from HttpTunnelServlet connected broker are limited to 64K bytes. In-Reply-To: <20629458.1183494753768.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eddie Epstein updated AMQ-1308: ------------------------------- Attachment: HttpProblems.patch Turns out there is another bug: the HTTP connector is completely broken for multi-byte UTF-8 characters. The attached patch file includes fixes for both the 64K limit (same fix as previously submitted) and for the bad decode of the Http request body. > Messages delivered from HttpTunnelServlet connected broker are limited to 64K bytes. > ------------------------------------------------------------------------------------ > > Key: AMQ-1308 > URL: https://issues.apache.org/activemq/browse/AMQ-1308 > Project: ActiveMQ > Issue Type: Bug > Components: Transport > Affects Versions: 4.1.1 > Environment: Java consumer receiving messages using HTTP connector > Reporter: Eddie Epstein > Attachments: HttpProblems.patch > > > In TextWireFormat.java: the methods writeUTF/readUTF are used in the code path to deliver messages from an HTTP connected broker. > public void marshal(Object command, DataOutput out) throws IOException { > out.writeUTF(marshalText(command)); > } > public Object unmarshal(DataInput in) throws IOException { > String text = in.readUTF(); > return unmarshalText(text); > } > These methods limit the max message size to 64K. Messages sent to an HTTP connected broker do not have the same limitation. > Problem first reported in activemq-users with the subject "UTFDataFormatException in broker when using a http transportConnector". > THanks, > Eddie -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.