Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-3889

Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.7.0
    • Component/s: JMX
    • Labels:
      None
    • Environment:

      Linux 64-bit, multiple java versions.

    • Patch Info:
      Patch Available

      Description

      When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.

      I am not sure if that is intended behaviour, but I have written a testcase that illustrates it.

      I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

        Attachments

        1. OpenTypeSupportTest.java
          2 kB
          Robin Kåveland
        2. OpenTypeSupport.diff
          0.5 kB
          Robin Kåveland

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              kaaveland Robin Kåveland
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: