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

AMQP/JMS message transformation broken.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.14.1, 5.15.0
    • Component/s: AMQP
    • Labels:
      None

      Description

      The changes introduced by AMQ-6374 broke the transformation between AMQP and JMS for UTF-8 text messages.

      I have enabled the JMS message transformer for the AMQP transport connector. If I send a UTF-8 text message over AMQP and then reads it back over AMQP I get an empty message body.

      I have looked at the code and found the bad code. It is in the org.apache.activemq.transport.amqp.message.ActiveMQJMSVendor class.

      When the inbound message arrives the createTextMessage(String) method is called. That method creates an ActiveMQTextMessage instance whose data is set with the setText method.

      When the outbound message is to be sent the getBinaryFromMessageBody(TextMessage) method is called. This method tries to get the data with the getContent method, but that method always returns null. The getText method returns the correct data, but is not used here.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tabish Timothy A. Bish
                Reporter:
                hakanj HÃ¥kan Johansson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: