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

NullPointerException for failed One-Way requests with HTTP session handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.24.2
    • 2.24.3, 3.0.0, 2.25.0
    • camel-cxf
    • None
    • Unknown

    Description

      In some cases there is no inMessage in the cxf exchange in case of an error. If HTTP session handling is enabled (cookies), this will result in a NullPointerException.

      The fix for this is rather trivial; a null check has to be done before accessing the inMessage.

      This usually happens for one-way messages where HTTP session handling does not make much sense (because without a response there are no cookies), but nevertheless there should be no NullPointerException

      Attachments

        Activity

          People

            siano Stephan Siano
            siano Stephan Siano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: