ServiceMix 4
  1. ServiceMix 4
  2. SMX4-708

NMR adds null header in Camel Exchange ?

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: camel-nmr
    • Labels:
      None
    • Environment:

      camel nmr servicemix

      Description

      I get this error in the log when I try to serialize my Camel Exchanges with the DefaultExchangeHandler:

      DefaultExchangeHolder | camel.impl.DefaultExchangeHolder 210 | 69 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | in headers containing object: null with key: CamelAuthentication cannot be serialized, it will be excluded by the holder.

      The CamelAuthentication header appears when message is passing through the NMR
      If null, CamelAuthentication should not be set in the headers. Also this should be logged as WARN.

      Here is the route:

              <route>
                  <from uri="Order" />
                  <transacted />
              <to uri="nmr:bsb:documentorder" />
              </route>
      
              <route>
                  <from uri="nmr:bsb:documentorder" />
                  <to uri="..." />
              </route> 
      

      See more details on http://camel.465427.n5.nabble.com/Serialization-CamelAuthentication-is-null-td3290948.html

        Activity

        Hide
        Willem Jiang added a comment -

        Moved SMX4NMR-239 to SMX4-708, as this issue is related to camel-nmr component.

        Show
        Willem Jiang added a comment - Moved SMX4NMR-239 to SMX4-708 , as this issue is related to camel-nmr component.
        Hide
        Claus Ibsen added a comment -

        The WARN logging has been fixed in camel-core. However the header should most likely not be set if the value is null in the servicemix-nmr component.

        Show
        Claus Ibsen added a comment - The WARN logging has been fixed in camel-core. However the header should most likely not be set if the value is null in the servicemix-nmr component.

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Olivier Roger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development