Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 17022 invoked from network); 17 Oct 2008 11:53:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2008 11:53:45 -0000 Received: (qmail 97142 invoked by uid 500); 17 Oct 2008 11:53:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 97121 invoked by uid 500); 17 Oct 2008 11:53:46 -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 97110 invoked by uid 99); 17 Oct 2008 11:53:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 04:53:45 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 11:52:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A72FE234C232 for ; Fri, 17 Oct 2008 04:52:53 -0700 (PDT) Message-ID: <336899236.1224244373683.JavaMail.jira@brutus> Date: Fri, 17 Oct 2008 04:52:53 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1981) After adding getText and getProperties in ActiveMQText.toString(), OpenWire ActiveMQTextMessageTests fail In-Reply-To: <1000826823.1224238852607.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46547#action_46547 ] Gary Tully commented on AMQ-1981: --------------------------------- great, I agree that the tests are at fault here. looks good. > After adding getText and getProperties in ActiveMQText.toString(), OpenWire ActiveMQTextMessageTests fail > --------------------------------------------------------------------------------------------------------- > > Key: AMQ-1981 > URL: https://issues.apache.org/activemq/browse/AMQ-1981 > Project: ActiveMQ > Issue Type: Bug > Reporter: Dejan Bosanac > Assignee: Dejan Bosanac > Fix For: 5.3.0 > > > The problem is that MarshallingSupport.readUTF8() method does not work well when provided byte sequence does not contain UTF8 String. It tries to read size from first two characters and throws heap size exception. > So this will not work: > ActiveMQTextMessage msg = new ActiveMQTextMessage(); > msg.setContent(new ByteSequence("test".getBytes())); > msg.getText(); > and this is used in tests to set content and marshalled properties of the message. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.