Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2472

if exception in fault handling, throw fault instead of processing exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.4, 2.2.5
    • 2.1.8, 2.2.5
    • Soap Binding
    • None

    Description

      In Soap11FaultOutInterceptor and Soap12FaultOutInterceptor, if we encounter an XMLStreamException writing the fault, we throw a new Fault wrapping that processing exception. Runtime exceptions are not caught, and the original fault is lost. I've attached a patch addressing both of these issues.

      With this patch, if there's a processing exception we will see the original fault in the server logs rather than the processing exception. From my experience, logging this fault is much more valuable than logging the processing exception.

      Attachments

        1. SoapFaultOutInterceptors.patch
          2 kB
          Michael Allman

        Activity

          People

            dkulp Daniel Kulp
            msa@allman.ms Michael Allman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: