You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Grzegorz Grzybek (JIRA)" <ji...@apache.org> on 2018/07/27 10:51:00 UTC

[jira] [Created] (CAMEL-12691) Allow configuration of org.xml.sax.ErrorHandler on DocumentBuilders used in Camel

Grzegorz Grzybek created CAMEL-12691:
----------------------------------------

             Summary: Allow configuration of org.xml.sax.ErrorHandler on DocumentBuilders used in Camel
                 Key: CAMEL-12691
                 URL: https://issues.apache.org/jira/browse/CAMEL-12691
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.21.1
            Reporter: Grzegorz Grzybek


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:
{noformat}
[Fatal Error] :-1:-1: Premature end of file.
{noformat}

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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)