1 Reply Latest reply on Jul 14, 2017 7:24 AM by Laura delli Paoli

    WFLYCTL0158: Operation handler failed: java.lang.ClassCastException: org.apache.activemq.artemis.api.core.SimpleString cannot be cast to java.lang.Byte when browsing queue

    Laura delli Paoli Master

      Hi,

      I have a issue on performing

      [standalone@172.17.0.11: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?

       

      Thanks,

      Laura