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

Runtime Exceptions should not be wrapped. Exceptions should not be logged and rethrown in AbstractFaultChainInitiatorObserver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1
    • Core
    • None

    Description

      Currently the class org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver handles faults and sends them to a chain.
      If in this chain another exception occurs then three things happen.

      1) The exception is Wrapped in a RuntimeException
      2) The exception is logged
      3) The exception is rethrown

      I propose to do the following instead :

      1) Only Wrap the exception if it is no RuntimeException
      2) Simply Rethrow and do not log as probably the Exception in caught and logged in another place anyway

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: