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

XML validation errors should be not logged on System.err

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.8.1, 2.9.0
    • camel-core
    • None
    • Patch Available
    • Novice

    Description

      When a XSLT has validation errors, these errors do not appear in the log4j logs but instead are printed as "System.err".
      A simple change to the XmlConverter class of camel-core and a custom XmlErrorListener fixes that (see attachment).
      Please consider the patch for inclusion.
      Thanks.

      Attachments

        1. camel_xml_exceptions1.patch
          0.5 kB
          metatech
        2. camel_xml_exceptions2.patch
          0.9 kB
          metatech
        3. camel_xml_exceptions3.patch
          0.8 kB
          metatech

        Activity

          People

            muellerc Christian Müller
            metatech metatech
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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