activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Langlois <>
Subject ActiveMQcpp cms::Session::createTextMessage() function usage question with ISO-8859-1 strings
Date Thu, 30 Jul 2009 21:24:01 GMT

An exception is thrown by the java receiving side:

Caused by:
        at org.apache.activemq.util.MarshallingSupport.readUTF8(
        at org.apache.activemq.command.ActiveMQTextMessage.getText(
        ... 17 more

The producer of this message is using ActiveMQcpp and the string passed to createTextMessage()
is a string using the ISO-8859-1 charset and it is not encoded in UTF-8. That string can contain
characters with a value higher than 127 and may result into an invalid UTF-8 string.

I have checked the activemqcpp HTML doxygen doc for this function to seek an answer but the
function description is omitting to specify the requirements on the function input parameter
string requirements. Is the function expect the string to be UTF-8?

Thank you,
Olivier Langlois
Senior C++ Programmer


t. 1 866 448 4037 ext. 675
t. 1 514 448 4037 ext. 675
f. 1 514 807 1861
StreamTheWorld launches its new BlackBerry application. Learn more

View raw message