Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 35083 invoked from network); 9 May 2006 07:17:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 07:17:11 -0000 Received: (qmail 2692 invoked by uid 500); 9 May 2006 07:17:04 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 2569 invoked by uid 500); 9 May 2006 07:17:04 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 2481 invoked by uid 99); 9 May 2006 07:17:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 00:17:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 00:17:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7C6C7142CF for ; Tue, 9 May 2006 07:16:21 +0000 (GMT) Message-ID: <3727491.1147158981815.JavaMail.jira@brutus> Date: Tue, 9 May 2006 07:16:21 +0000 (GMT+00:00) From: =?utf-8?Q?S=C3=A9bastien_Arod_=28JIRA=29?= To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-676) An exception is thrown while getting WSDL for a deployed service In-Reply-To: <19478808.1146837147538.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-676?page=3Dall ] S=C3=A9bastien Arod updated AXIS2-676: --------------------------------- Attachment: MyService.wsdl > An exception is thrown while getting WSDL for a deployed service > ---------------------------------------------------------------- > > Key: AXIS2-676 > URL: http://issues.apache.org/jira/browse/AXIS2-676 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Versions: 1.0 > Environment: =09 Widows XP > JDK 1.5.0_06 > apache-tomcat-5.5.12 > Axis2 1.0 webapp > Reporter: S=C3=A9bastien Arod > Priority: Critical > Attachments: MyService.wsdl > > I deployed a service in the Axis2 webapp. > The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "pr=C3=A9= nom") in the XSD element annotations. > When I try to get WSDL from deployed service (MyService?wsdl) an Exceptio= n is thrown : > javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid= UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:=20 > =09org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Inv= alid UTF-8 middle byte 0x6e (at char #1999, byte #-1) > =09org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111= ) > =09javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > =09javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > cause m=C3=A8re > org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF= -8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:=20 > =09org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Inv= alid UTF-8 middle byte 0x6e (at char #1999, byte #-1) > =09org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) > =09org.apache.axis2.description.AxisService.printWSDL(AxisService.java:53= 3) > =09org.apache.axis2.transport.http.ListingAgent.processListService(Listin= gAgent.java:144) > =09org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:= 89) > =09org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109= ) > =09javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > =09javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > The WSDL was created with JAXP/DOM : Here is the java code to write DOM d= ocument to file > Transformer xformer =3D TransformerFactory.newInstance().newTransformer()= ; > xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$ > OutputStream os =3D new FileOutputStream(getWSDLFile()); > Writer writer =3D new OutputStreamWriter(os, "UTF8"); //$NON-= NLS-1$ > xformer.transform(new DOMSource(mDocument), new StreamResult(writer)); > os.close(); --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira