You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/01 16:12:00 UTC
[jira] [Commented] (ARTEMIS-1716)
QueueControlImpl#listMessagesAsJSON fails when message contains a byte[]
header
[ https://issues.apache.org/jira/browse/ARTEMIS-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16382227#comment-16382227 ]
ASF GitHub Bot commented on ARTEMIS-1716:
-----------------------------------------
GitHub user iweiss opened a pull request:
https://github.com/apache/activemq-artemis/pull/1914
[ARTEMIS-1716] QueueControlImpl#listMessagesAsJSON fails when message contains a byte[] header
Issue: https://issues.apache.org/jira/browse/ARTEMIS-1716
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/iweiss/activemq-artemis ARTEMIS-1716
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1914.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1914
----
commit 3157f5b9f5943c9ab015592d1ca11e899de0e20e
Author: Ingo Weiss <in...@...>
Date: 2018-02-28T16:03:00Z
[ARTEMIS-1716] QueueControlImpl#listMessagesAsJSON fails when message contains a byte[] header
Issue: https://issues.apache.org/jira/browse/ARTEMIS-1716
----
> 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
> Priority: Major
>
> 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)