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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.21.1
    • 2.21.3, 2.22.1, 2.23.0
    • camel-core
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment