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

XSLT errors should not be ignored

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.3
    • Fix Version/s: 2.16.0, 2.15.4
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      ServiceMix 5.4.1

    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Since CAMEL-4396, XSLT exceptions are not logged anymore on System.err.
      Unfortunately, the XsltErrorHandler which was introduced does not behave as the default ErrorHandler which logs on System.err and re-throws exceptions (my mistake).
      The XsltErrorHandler should re-throw exceptions for ERROR or FATAL, otherwise they are ignored and the service is allowed to start, although the XSLT transformation is not successfully started.
      Here is a small patch that fixes that.
      The test "XsltTestErrorListenerTest" is still successful.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              metatech metatech
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified