Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1716

QueueControlImpl#listMessagesAsJSON fails when message contains a byte[] header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.5
    • None
    • Broker
    • None

    Description

      When QueueControlImpl#listMessagesAsJSON is called and there's a message in the queue with a byte[] header, a similar exception is thrown:

       

      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)
      ...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iweiss Ingo Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: