Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B0ECE200B46 for ; Fri, 1 Jul 2016 12:06:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF9BE160A5D; Fri, 1 Jul 2016 10:06:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2AF2B160A61 for ; Fri, 1 Jul 2016 12:06:12 +0200 (CEST) Received: (qmail 47231 invoked by uid 500); 1 Jul 2016 10:06:11 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 47213 invoked by uid 99); 1 Jul 2016 10:06:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 10:06:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 088CD2C02A1 for ; Fri, 1 Jul 2016 10:06:11 +0000 (UTC) Date: Fri, 1 Jul 2016 10:06:11 +0000 (UTC) From: "Stephan Siano (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-10111) Creating an InputStream from XMLStreamReader fails with ASCII default platform encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 10:06:12 -0000 [ 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)