Skip to content
Permalink
Browse files
ARTEMIS-3780 - OpenWire, UTF8Buffer to String before setting properti…
…es to avoid exception
  • Loading branch information
AntonRoskvist authored and clebertsuconic committed Apr 20, 2022
1 parent c5f45ee commit 32c5f9d2685252e4b5fb213527084173351d7d63
Showing 1 changed file with 5 additions and 1 deletion.
@@ -447,7 +447,11 @@ private static void putMsgProperties(final Message messageSend,
if (!props.isEmpty()) {
props.forEach((key, value) -> {
try {
coreMessage.putObjectProperty(key, value);
if (value instanceof UTF8Buffer) {
coreMessage.putObjectProperty(key, value.toString());
} else {
coreMessage.putObjectProperty(key, value);
}
} catch (ActiveMQPropertyConversionException e) {
coreMessage.putStringProperty(key, value.toString());
}

0 comments on commit 32c5f9d

Please sign in to comment.