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

Stephan Siano updated CAMEL-10111:
----------------------------------
    Description: 
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.

  was:
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 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.


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

Reply via email to