[ 
https://issues.apache.org/jira/browse/CAMEL-12691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563392#comment-16563392
 ] 

ASF GitHub Bot commented on CAMEL-12691:
----------------------------------------

GitHub user davsclaus opened a pull request:

    https://github.com/apache/camel/pull/2445

    CAMEL-12691: XmlConverter should use logger api when reporting parsin…

    …g errors.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/camel camel-12691

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2445.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2445
    
----
commit d9cff3daf6119e27ee3f5feb3c65433b5370946f
Author: Claus Ibsen <claus.ibsen@...>
Date:   2018-07-31T09:43:47Z

    CAMEL-12691: XmlConverter should use logger api when reporting parsing 
errors.

----


> 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
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 2.21.3, 2.22.1, 2.23.0
>
>
> 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)

Reply via email to