[
https://issues.apache.org/jira/browse/ARTEMIS-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347667#comment-17347667
]
Jiri Daněk commented on ARTEMIS-3079:
-------------------------------------
[~brusdev] I'm thinking, the error message is quite misleading. It says "Params
for management operations must be of the following type: ...", suggesting that
the user specified an incorrect parameter. But in fact, the problem is that the
broker is trying to serialize a wrong type (type that is unable to be
serialized here).
If I saw this message, I'd start messing with my call, I probably would not
immediately start thinking about the data the broker is returning.
> QueueControl fails on serializing AMQP messages with binary application
> properties
> ----------------------------------------------------------------------------------
>
> Key: ARTEMIS-3079
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3079
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Domenico Francesco Bruscino
> Assignee: Domenico Francesco Bruscino
> Priority: Minor
> Fix For: 2.17.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The QueueControl fails to get the first message as JSON if the first message
> of a queue is an AMQP message with binary application properties:
> {code:java}
> java.lang.IllegalArgumentException: AMQ219034: Params for management
> operations must be of the following type: int long double String boolean Map
> or array thereof but found org.apache.qpid.proton.amqp.Binary
> at
> org.apache.activemq.artemis.api.core.JsonUtil.addToObject(JsonUtil.java:214)
> at
> org.apache.activemq.artemis.api.core.JsonUtil.toJsonObject(JsonUtil.java:260)
> at
> org.apache.activemq.artemis.core.management.impl.QueueControlImpl.toJSONMsgArray(QueueControlImpl.java:95)
> at
> org.apache.activemq.artemis.core.management.impl.QueueControlImpl.toJSON(QueueControlImpl.java:88)
> at
> org.apache.activemq.artemis.core.management.impl.QueueControlImpl.getFirstMessageAsJSON(QueueControlImpl.java:916)
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)