ARTEMIS-3780 - OpenWire, UTF8Buffer to String before setting properties to avoid exception
This commit is contained in:
parent
c5f45ee44d
commit
32c5f9d268
|
@ -447,7 +447,11 @@ public final class OpenWireMessageConverter {
|
|||
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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue