Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 257A2803A for ; Wed, 7 Sep 2011 10:50:10 +0000 (UTC) Received: (qmail 23193 invoked by uid 500); 7 Sep 2011 10:49:59 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 22801 invoked by uid 500); 7 Sep 2011 10:49:37 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 22753 invoked by uid 99); 7 Sep 2011 10:49:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 10:49:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 10:49:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D3C34859F6 for ; Wed, 7 Sep 2011 10:49:09 +0000 (UTC) Date: Wed, 7 Sep 2011 10:49:09 +0000 (UTC) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Message-ID: <1064566536.24946.1315392549846.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <275656676.24823.1315389429798.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (FELIX-3108) SCR doesn't cope when the DS xml is not encoded using the default platform encoding. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-3108?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved FELIX-3108. -------------------------------------- Resolution: Fixed Fix Version/s: scr-1.6.2 Fixed in Rev. 1166104 > SCR doesn't cope when the DS xml is not encoded using the default platfor= m encoding. > -------------------------------------------------------------------------= ----------- > > Key: FELIX-3108 > URL: https://issues.apache.org/jira/browse/FELIX-3108 > Project: Felix > Issue Type: Bug > Components: Declarative Services (SCR) > Affects Versions: scr-1.6.0 > Reporter: Alasdair Nottingham > Assignee: Felix Meschberger > Fix For: scr-1.6.2 > > > I've been trying to use felix SCR on z/OS (insane I know). The default pl= atform encoding for z/OS is EBCDIC. When parsing my DS component xml I get = the following exception in the log: > !STACK 0 > org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:= TEXT =C3=83=C5=92_%=C3=82=E2=82=AC=C3=83=C5=BD=C3=83=C2=81=C3=83=C5=A0=C3= =83=E2=80=B9=C3=83'?>=C3=82'...@1:239 in java.io.BufferedReader@71fedaf)=20 > =09at org.kxml2.io.KXmlParser.exception(Unknown Source) > =09at org.kxml2.io.KXmlParser.error(Unknown Source) > =09at org.kxml2.io.KXmlParser.pushEntity(Unknown Source) > =09at org.kxml2.io.KXmlParser.pushText(Unknown Source) > =09at org.kxml2.io.KXmlParser.nextImpl(Unknown Source) > =09at org.kxml2.io.KXmlParser.next(Unknown Source) > =09at org.apache.felix.scr.impl.parser.KXml2SAXParser.parseXML(KXml2SAXPa= rser.java:62) > =09at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(B= undleComponentActivator.java:227) > The component.xml is UTF-8 encoded not EBCDIC. The DS spec 112.4.2 (page = 310) says that the file is UTF-8 encoded so it should be able to parse it. = I suspect the BundleComponentActivator creates an InputStreamReader and doe= sn't provide an encoding which is why I see this problem. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira