You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sébastien Arod (JIRA)" <ji...@apache.org> on 2006/05/05 15:52:27 UTC
[jira] Created: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
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: Widows XP
JDK 1.5.0_06
apache-tomcat-5.5.12
Axis2 1.0 webapp
Reporter: Sébastien Arod
Priority: Critical
I deployed a service in the Axis2 webapp.
The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
cause mère
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
OutputStream os = new FileOutputStream(getWSDLFile());
Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
os.close();
--
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
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12412018 ]
Deepal Jayasinghe commented on AXIS2-676:
-----------------------------------------
There is a problem in encoding , it seems to me that encoding is not UTF-8 and it should be ISO-8859-1
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> 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énom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
[jira] Updated: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Sébastien Arod (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=all ]
Sébastien 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien 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énom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
[jira] Assigned: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=all ]
Deepal Jayasinghe reassigned AXIS2-676:
---------------------------------------
Assign To: Deepal Jayasinghe
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> 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énom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
[jira] Updated: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Sébastien Arod (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=all ]
Sébastien Arod updated AXIS2-676:
---------------------------------
Attachment: AxisService2OM_patch.txt
The code used to generate wsdl from schema assume default encoding is UTF8 (AxisOMService.java line 160) :
XMLStreamReader xmlReader = StAXUtils
.createXMLStreamReader(new ByteArrayInputStream(schemaString.getBytes()));
Indeed String.getBytes() uses default JVM encoding (ISO-8859-1 in my case) and StAXUtils.createXMLStreamReader(InputStream) use UTF-8 as default encoding
It seems to me that as we read from a string a reader is more convenient :
XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new StringReader(schemaString));
A patch is attached
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: AxisService2OM_patch.txt, MyService.wsdl
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Sébastien Arod (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12417990 ]
Sébastien Arod commented on AXIS2-676:
--------------------------------------
Yes this patch solves my problem
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: AxisService2OM_patch.txt, MyService.wsdl
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12417980 ]
Deepal Jayasinghe commented on AXIS2-676:
-----------------------------------------
Does this patch solve your problem ?
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: AxisService2OM_patch.txt, MyService.wsdl
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=all ]
Deepal Jayasinghe resolved AXIS2-676:
-------------------------------------
Resolution: Fixed
Arod send a patch to solve the problem.
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: AxisService2OM_patch.txt, MyService.wsdl
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12412009 ]
Deepal Jayasinghe commented on AXIS2-676:
-----------------------------------------
Luckily I was able to regenerate the issue and found that there is a problem in XMLSchema. It drop few characters in the wsdl file.
There is Axis2 bug as well.
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> 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énom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12378286 ]
Deepal Jayasinghe commented on AXIS2-676:
-----------------------------------------
Can you please attach the wsdl if possible
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Priority: Critical
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
[jira] Commented: (AXIS2-676) An exception is thrown while getting
WSDL for a deployed service
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-676?page=comments#action_12417984 ]
Deepal Jayasinghe commented on AXIS2-676:
-----------------------------------------
applied
> 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: Widows XP
> JDK 1.5.0_06
> apache-tomcat-5.5.12
> Axis2 1.0 webapp
> Reporter: Sébastien Arod
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: AxisService2OM_patch.txt, MyService.wsdl
>
> I deployed a service in the Axis2 webapp.
> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. word "prénom") in the XSD element annotations.
> When I try to get WSDL from deployed service (MyService?wsdl) an Exception is thrown :
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> cause mère
> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)
> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> The WSDL was created with JAXP/DOM : Here is the java code to write DOM document to file
> Transformer xformer = TransformerFactory.newInstance().newTransformer();
> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
> OutputStream os = new FileOutputStream(getWSDLFile());
> Writer writer = new OutputStreamWriter(os, "UTF8"); //$NON-NLS-1$
> xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
> os.close();
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org