Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6833

Message Trace outputs 'null' as content for non-Stream and non-Reader type messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • jboss-fuse-6.3
    • Fuse EAP, SwitchYard
    • None
    • % %

    Description

      Message Trace outputs 'null' as Message Content if the message are not Stream or Reader types. Please take a look at org.switchyard.runtime.util.ExchangeFormatter.formatBody() static method for more detail.

      The JIRA ENTESB-5113 fixed message trace encoding issue but it introduced this bug. Basically it is missing an else block to do what it did before:
      content = msg.getContent(String.class);
      As a result, for any non-Stream and non-Reader type messages, the string variable "content" remains null:
      85 String content = null;

      Attachments

        Issue Links

          Activity

            People

              tcunning@redhat.com Thomas Cunningham
              rhn-support-qluo Joe Luo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: