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

Allow configuration of org.xml.sax.ErrorHandler on DocumentBuilders used in Camel

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.1
    • Fix Version/s: 2.21.3, 2.22.1, 2.23.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I have trivial route that processes XMLs. When the XML is route and has no content (like empty file processed by <from uri="file:xxx">) I'm getting:

      [Fatal Error] :-1:-1: Premature end of file.
      

      printed directly on STDOUT.

      If there was a way to make org.apache.camel.converter.jaxp.XmlConverter call javax.xml.parsers.DocumentBuilder#setErrorHandler (for example delegating to logger), it'd be great.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ggrzybek Grzegorz Grzybek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: