Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 79407 invoked from network); 26 Mar 2009 02:25:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 02:25:15 -0000 Received: (qmail 48715 invoked by uid 500); 26 Mar 2009 02:25:15 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 48666 invoked by uid 500); 26 Mar 2009 02:25:15 -0000 Mailing-List: contact dev-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@abdera.apache.org Delivered-To: mailing list dev@abdera.apache.org Received: (qmail 48638 invoked by uid 500); 26 Mar 2009 02:25:15 -0000 Delivered-To: apmail-incubator-abdera-dev@incubator.apache.org Received: (qmail 48629 invoked by uid 99); 26 Mar 2009 02:25:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 02:25:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 02:25:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EDC47234C046 for ; Wed, 25 Mar 2009 19:24:51 -0700 (PDT) Message-ID: <969597315.1238034291972.JavaMail.jira@brutus> Date: Wed, 25 Mar 2009 19:24:51 -0700 (PDT) From: "jv ning (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-222) Parse failures reading utf-8 xml files that have attribute values that contain non US-ASCII valid utf-8 characters In-Reply-To: <1826815061.1237858490713.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jv ning updated ABDERA-222: --------------------------- Attachment: ChunkedTransferFailure.java This code, when run against abdera 4.0 using HttpClient 3.1 demonstrates the chunked transfer multi-byte failures There are two examples in the code, one that places a multibyte character at position 0 in a chunk, the byte array rawChunkWithMultiByteAtStart and one that does not place a multbyte character at position 0 of any chunk. rawNoChunkWithMultiByteAtStart > Parse failures reading utf-8 xml files that have attribute values that contain non US-ASCII valid utf-8 characters > ------------------------------------------------------------------------------------------------------------------ > > Key: ABDERA-222 > URL: https://issues.apache.org/jira/browse/ABDERA-222 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.4.0 > Environment: solarix x86_64, MaxOS Leopard x86_64, linux x86_64 > Reporter: jv ning > Attachments: ChunkedTransferFailure.java > > > When parsing XML files that are items fetched by http-client 3.1 > The same items parse correctly, if written to a byte array and then a ByteArrayInputStream on the byte array, is passed to parse. > parser.parse(response.getResponseBodyAsStream()); > Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character (NULL, unicode 0) encountered: not valid in any content > at [row,col {unknown-source}]: [3,56] > at com.ctc.wstx.sr.StreamScanner.constructNullCharException(StreamScanner.java:615) > at com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:644) > at com.ctc.wstx.sr.BasicStreamReader.readTextPrimary(BasicStreamReader.java:4554) > at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2886) > at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) > at org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:163) > at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:187) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.