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

After adding getText and getProperties in ActiveMQText.toString(), OpenWire ActiveMQTextMessageTests fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Labels:
      None

      Description

      The problem is that MarshallingSupport.readUTF8() method does not work well when provided byte sequence does not contain UTF8 String. It tries to read size from first two characters and throws heap size exception.

      So this will not work:

      ActiveMQTextMessage msg = new ActiveMQTextMessage();
      msg.setContent(new ByteSequence("test".getBytes()));
      msg.getText();

      and this is used in tests to set content and marshalled properties of the message.

        Attachments

          Activity

            People

            • Assignee:
              dejanb Dejan Bosanac
              Reporter:
              dejanb Dejan Bosanac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: