Topic
  • 7 replies
  • Latest Post - ‏2012-12-03T11:28:37Z by SystemAdmin
alexge
alexge
1 Post

Pinned topic UnsupportedEncodingException: "utf-8" when using web service thin client an

‏2008-04-21T10:02:59Z |
Hi, every one, I'm using Sun application server and IBM websphere thin client, when my client application(using websphere thin client V6.1) try to invoke a deployed simple hello world web service, I got following exception:

Place 1a
17/04/2008 10:19:22 com.ibm.ws.ssl.config.SSLConfigManager
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Place 1b
Place 1c
javax.xml.ws.WebServiceException: javax.xml.stream.XMLStreamException: java.io.UnsupportedEncodingException: "utf-8"
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:180)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:134)
at org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:587)
at org.apache.axis2.jaxws.core.controller.AxisInvocationController.doInvoke(AxisInvocationController.java:111)
at org.apache.axis2.jaxws.core.controller.InvocationController.invoke(InvocationController.java:110)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:275)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:147)
at $Proxy7.sayHello(Unknown Source)
at asb.client.Main.main(Main.java:12)
Caused by: javax.xml.stream.XMLStreamException: java.io.UnsupportedEncodingException: "utf-8"
at com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:63)
at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.setDocumentEntity(XMLStreamReaderImpl.java:313)
at com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:993)
at com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReaderInternal(XMLInputFactoryImpl.java:1115)
at com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:1182)
at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:159)
at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:49)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:86)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:299)
at org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:582)
... 6 more
Caused by: java.io.UnsupportedEncodingException: "utf-8"
at sun.io.Converters.getConverterClass(Converters.java:306)
at sun.io.Converters.newConverter(Converters.java:339)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:113)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:290)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:276)
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:138)
at java.io.InputStreamReader.<init>(InputStreamReader.java:125)
at com.ibm.xml.xlxp.api.util.encoding.PlatformEncodingSupport.loadFromByteStream(PlatformEncodingSupport.java:56)

From respone, I think this exeception is caused by a double quote placed in encoding in soap response like following:

text/xml; charset="utf-8"

It seems WAS V5.1 has such problem but was fixed, does some one have same problem and is there a solution for this?
Updated on 2012-12-03T11:28:37Z at 2012-12-03T11:28:37Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1677 Posts

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2008-04-22T03:19:37Z  
    Hi alexge,

    Have you tried the following resources available? Hope it helps.

    Recommended fixes for WebSphere Application Server http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg27004980

    WebSphere Application Server V6 Problem Determination for Distributed Platforms www.redbooks.ibm.com/redbooks/pdfs/sg246798.pdf

    WebSphere Application Server V6.1:Web Container Problem Determination
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4309.pdf

    Fix list for WebSphere Application Server Version 6.0.2 http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg27006876

    Character Conversions from Browser to Database http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/
  • SystemAdmin
    SystemAdmin
    1677 Posts

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2008-05-29T21:59:15Z  
    Hi alexge,

    Have you tried the following resources available? Hope it helps.

    Recommended fixes for WebSphere Application Server http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg27004980

    WebSphere Application Server V6 Problem Determination for Distributed Platforms www.redbooks.ibm.com/redbooks/pdfs/sg246798.pdf

    WebSphere Application Server V6.1:Web Container Problem Determination
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4309.pdf

    Fix list for WebSphere Application Server Version 6.0.2 http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg27006876

    Character Conversions from Browser to Database http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/
    Hi, I am getting the exactly same exception on Websphere 6.1 while I am developing a web service client using jax-ws 2.0. My Websphere is up to fix pack 15.

    Any luck on finding the solution? Or any workaround?
  • SystemAdmin
    SystemAdmin
    1677 Posts

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2008-05-30T04:02:34Z  
    Hi,

    Have you tried posting your enquiry in the IBM WAS Technical Forum? Here is the link.

    http://www-128.ibm.com/developerworks/forums/forum.jspa?forumID=266&start=0

    Hope it helps.
  • SystemAdmin
    SystemAdmin
    1677 Posts

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2008-05-30T16:22:53Z  
    Hi,

    Have you tried posting your enquiry in the IBM WAS Technical Forum? Here is the link.

    http://www-128.ibm.com/developerworks/forums/forum.jspa?forumID=266&start=0

    Hope it helps.
    thank you so much. I will look it up.
  • Muthaks
    Muthaks
    1 Post

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2012-07-17T12:03:48Z  
    thank you so much. I will look it up.
    Has anyone resolve this problem, i am having it in was 7
  • CM9Q_VamsiKrishna_Sribhashyam
    1 Post

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2012-08-21T05:57:17Z  
    • Muthaks
    • ‏2012-07-17T12:03:48Z
    Has anyone resolve this problem, i am having it in was 7
    Im also facing the same in WAS7. can ant one help me at the earliest as this is blocking my delivery?
  • SystemAdmin
    SystemAdmin
    1677 Posts

    Re: UnsupportedEncodingException: "utf-8" when using web service thin client an

    ‏2012-12-03T11:28:37Z  
    Im also facing the same in WAS7. can ant one help me at the earliest as this is blocking my delivery?
    Vamsi,

    Have you got solution for this issue? Please share the resolution details