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] Created: (AMQ-1981) After adding getText and getProperties in ActiveMQText.toString(), OpenWire ActiveMQTextMessageTests fail
Date Fri, 17 Oct 2008 10:20:52 GMT
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