I have a issue on performing
[firstname.lastname@example.org:9990 /] /subsystem=messaging-activemq/server=default/jms-queue=myQueue:list-messages-as-json
on wildfly 10.0 queue (using the jboss-cli.sh but I have a similar error using a java client using jmx APIs)
When the queue is empty it works fine:
"outcome" => "success",
"result" => ""
but if I perform the operation on a queue containing at least one message I get the error reported in the title:
"outcome" => "failed",
"result" => undefined,
"failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.ClassCastException: org.apache.activemq.artemis.api.core.SimpleString cannot be cast to java.lang.Byte",
"rolled-back" => true
Can anyone help me?
I found out that the issue was due to a message property named "priority".