Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4472

HazelcastComponentHelper. copyHeaders() creates an Out message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.2, 2.9.0
    • camel-hazelcast
    • None
    • Patch Available
    • Unknown

    Description

      Due to lazy creation of Out message in DefaultExchange.getOut() implementation, HazelcastComponentHelper.copyHeaders() method inadvertently creates an Out message if one has not been set yet, which then creates problems in CamelInvocationHandler.getBody() which then returns null as a result.

      There should be a check in copyHeaders() to see if Out exists, e.g.:

      // set out headers 
      if (ex.hasOut()) { 
          ex.getOut().setHeaders(headers); 
      } 
      

      Attachments

        1. CAMEL-4472.patch
          0.7 kB
          Tomislav Mrkus

        Activity

          People

            davsclaus Claus Ibsen
            tmrkus Tomislav Mrkus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: