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

Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.5.1
    • 5.7.0
    • JMX
    • None
    • Linux 64-bit, multiple java versions.

    • 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. OpenTypeSupport.diff
          0.5 kB
          Robin Kåveland
        2. OpenTypeSupportTest.java
          2 kB
          Robin Kåveland

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: