You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Stephan Siano (JIRA)" <ji...@apache.org> on 2016/07/01 10:06:11 UTC

[jira] [Resolved] (CAMEL-10111) Creating an InputStream from XMLStreamReader fails with ASCII default platform encoding

     [ https://issues.apache.org/jira/browse/CAMEL-10111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephan Siano resolved CAMEL-10111.
-----------------------------------
    Resolution: Fixed

> Creating an InputStream from XMLStreamReader fails with ASCII default platform encoding
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-10111
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10111
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.2
>            Reporter: Stephan Siano
>            Assignee: Stephan Siano
>            Priority: Trivial
>             Fix For: 2.17.3, 2.18.0
>
>
> If a type conversion is performed between XMLStreamReader and the platform default encoding is not UTF-8 and the used Stax parser is the one from the JDK the conversion will fail.
> The error message will look like that:
> Caused by: javax.xml.stream.XMLStreamException: Underlying stream encoding 'ASCII' and input paramter for writeStartDocument() method 'utf-8' do not match.
> The underlying issue was introduced with CAMEL-10070 and CAMEL-10080.
> Unfortunately this cannot be unit tested, as in the unit tests the default platform encoding is UTF-8 and the used Stax parser is woodstox. Both conditions prevent the issue from occuring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)