camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Siano (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10111) Creating an InputStream from XMLStreamReader fails with ASCII default platform encoding
Date Fri, 01 Jul 2016 10:06:11 GMT

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

Stephan Siano updated CAMEL-10111:
----------------------------------
    Fix Version/s: 2.17.3

> 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)

Mime
View raw message