You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Ingo Weiss (JIRA)" <ji...@apache.org> on 2018/03/01 16:09:00 UTC

[jira] [Created] (ARTEMIS-1716) QueueControlImpl#listMessagesAsJSON fails when message contains a byte[] header

Ingo Weiss created ARTEMIS-1716:
-----------------------------------

             Summary: QueueControlImpl#listMessagesAsJSON fails when message contains a byte[] header
                 Key: ARTEMIS-1716
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1716
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 1.5.5
            Reporter: Ingo Weiss


When QueueControlImpl#listMessagesAsJSON is called and there's a message in the queue with a byte[] header, a similar exception is thrown:

 
{noformat}
java.lang.IllegalArgumentException: AMQ119034: Params for management operations must be of the following type: int long double String boolean Map or array thereof but found [B
at org.apache.activemq.artemis.api.core.JsonUtil.addToObject(JsonUtil.java:211)
at org.apache.activemq.artemis.api.core.JsonUtil.toJsonObject(JsonUtil.java:254)
at org.apache.activemq.artemis.jms.management.impl.JMSQueueControlImpl.toJSON(JMSQueueControlImpl.java:80)
at org.apache.activemq.artemis.jms.management.impl.JMSQueueControlImpl.listMessagesAsJSON(JMSQueueControlImpl.java:272)
...{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)