activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-1981) After adding getText and getProperties in ActiveMQText.toString(), OpenWire ActiveMQTextMessageTests fail
Date Fri, 17 Oct 2008 10:24:52 GMT

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

Dejan Bosanac resolved AMQ-1981.
--------------------------------

    Resolution: Fixed

Fixed in SVN revision 705547 by changing tests to set utf8 values for content and marshalled
properties. All additional reviews and comments are more than welcomed.

> 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.


Mime
View raw message