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

Add exception name to faultstring/detail/stackTrace

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.3, 2.7.14, 3.1
    • Soap Binding
    • None
    • Unknown

    Description

      When using faultStackTraceEnabled = true and exceptionMessageCauseEnabled = true, it's have the soap message enriched with the exception that caused a fault to be generated. The stackTrace element, though, does not include the (class) name of the exception that's been thrown.
      I tried a naive fix (i.e. adding sb.append(throwable.getClass().getCanonicalName() + " : " + throwable.getMessage() + "\n"); into the AbstractSoapInterceptor::prepareStackTrace(..) method), but it seems the whole fix for CXF-3445 should be revisited (including client side).

      Attachments

        Activity

          People

            asoldano Alessio Soldano
            asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: