You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Domenico Francesco Bruscino (Jira)" <ji...@apache.org> on 2021/01/21 09:02:00 UTC
[jira] [Updated] (ARTEMIS-3079) QueueControl fails on serializing
AMQP messages with binary application properties
[ https://issues.apache.org/jira/browse/ARTEMIS-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Domenico Francesco Bruscino updated ARTEMIS-3079:
-------------------------------------------------
Description:
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}
was:
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)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
...
{code}
> 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
>
> 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)