From 15bb4d2c6169488c572f51f63b12005bda00478c Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 24 May 2017 18:37:46 -0400 Subject: [PATCH] ARTEMIS-1176 Fixing reading from JMS Messages as core messages --- .../activemq/artemis/api/core/management/ManagementHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java index 946285da84..66180f26bd 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java @@ -195,7 +195,7 @@ public final class ManagementHelper { * and the result will be a String corresponding to the server exception. */ public static Object[] getResults(final ICoreMessage message) throws Exception { - SimpleString sstring = message.getBodyBuffer().readNullableSimpleString(); + SimpleString sstring = message.getReadOnlyBodyBuffer().readNullableSimpleString(); String jsonString = (sstring == null) ? null : sstring.toString(); if (jsonString != null) {