java.io.UnsupportedEncodingException: "UTF-8" - Websphere

This is a discussion on java.io.UnsupportedEncodingException: "UTF-8" - Websphere ; Hi! I'm getting this problem in WAS5.0 console(logs), java.io.UnsupportedEncodingException: "UTF-8". When i'm trying to access EJB-WebService from outside the Websphere container. Please see if you help. [4/11/05 21:28:31:782 IST] b213e61 WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet WSWS3227E: Error: Exception: [4/11/05 21:28:31:812 IST] ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: java.io.UnsupportedEncodingException: "UTF-8"

  1. java.io.UnsupportedEncodingException: "UTF-8"

    Hi!
    I'm getting this problem in WAS5.0 console(logs),
    java.io.UnsupportedEncodingException: "UTF-8". When i'm trying to access
    EJB-WebService from outside the Websphere container. Please see if you help.

    [4/11/05 21:28:31:782 IST] b213e61 WebServicesSe E
    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet WSWS3227E:
    Error: Exception:

    [4/11/05 21:28:31:812 IST] b213e61 WebServicesSe E
    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet TRAS0014I:
    The following exception was logged WebServicesFault

    faultCode: {http://websphere.ibm.com/webservices/}Server.generalException

    faultString: java.io.UnsupportedEncodingException: "UTF-8"

    faultActor: null

    faultDetail:

    stackTrace: java.io.UnsupportedEncodingException: "UTF-8"

    at sun.io.Converters.getConverterClass(Converters.jav a:121)

    at sun.io.Converters.newConverter(Converters.java:152 )

    at sun.io.ByteToCharConverter.getConverter(ByteToChar Converter.java:81)

    at java.io.InputStreamReader.<init>(InputStreamReader .java:93)

    at com.ibm.xml.b2b.util.JavaEncodingSupport.readChara cters(Unknown Source)

    at
    com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .convertByteStreamToUTF8(U
    nknown Source)

    at
    com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.setByteStreamSource
    (Unknown Source)

    at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .setSource(Unknown
    Source)

    at
    com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.createParsedEntity(
    Unknown Source)

    at util.DocumentEntityParserBase.parse(Unknown Source)

    at sax.SAX2DocumentEntityParserBase.parseEntity(Unkno wn Source)

    at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)

    at javax.xml.parsers.SAXParser.parse(Unknown Source)

    at
    com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.parse(Dese
    rializationContextImpl.java:256)

    at
    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEn velope(SOAPPart.java:698)

    at com.ibm.ws.webservices.engine.Message.getSOAPEnvel ope(Message.java:440)

    at
    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.checkSOAPSem
    antics(JAXRPCSOAPHandler.java:218)

    at
    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.invokeServer
    RequestHandler(JAXRPCSOAPHandler.java:188)

    at
    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler$1.invoke(JAXRPCH
    andler.java:232)

    at
    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    ..java:203)

    at
    com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.
    java:61)

    at
    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    ..java:217)

    at
    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    ..java:217)

    at
    com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.jav
    a:258)

    at
    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet.doPost(WebSe
    rvicesServlet.java:835)

    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)

    at
    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServletBase.service(
    WebServicesServletBase.java:341)

    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)

    at
    com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServle
    tInstance.java:110)

    at
    com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecy
    cleServlet.java:174)

    at
    com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServ
    let.java:313)

    at
    com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecyc
    leServlet.java:116)

    at
    com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java
    :283)

    at
    com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidSer
    vletReferenceState.java:42)

    at
    com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletIns
    tanceReference.java:40)

    at
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(
    WebAppRequestDispatcher.java:948)

    at
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppReques
    tDispatcher.java:530)

    at
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequest
    Dispatcher.java:176)

    at
    com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)

    at
    com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker
    ..java:201)

    at
    com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(C
    achedInvocation.java:71)

    at
    com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletReq
    uestProcessor.java:182)

    at
    com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListene
    r.java:334)

    at
    com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.jav
    a:56)

    at
    com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)

    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)

    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)

    Thanks,
    Sai
    syeruban@in.ibm.com



  2. Re: java.io.UnsupportedEncodingException: "UTF-8"

    I am assuming you are passing a xml document. Can you post that file?

    Sai Kumar wrote:
    > Hi!
    > I'm getting this problem in WAS5.0 console(logs),
    > java.io.UnsupportedEncodingException: "UTF-8". When i'm trying to access
    > EJB-WebService from outside the Websphere container. Please see if you help.
    >
    > [4/11/05 21:28:31:782 IST] b213e61 WebServicesSe E
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet WSWS3227E:
    > Error: Exception:
    >
    > [4/11/05 21:28:31:812 IST] b213e61 WebServicesSe E
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet TRAS0014I:
    > The following exception was logged WebServicesFault
    >
    > faultCode: {http://websphere.ibm.com/webservices/}Server.generalException
    >
    > faultString: java.io.UnsupportedEncodingException: "UTF-8"
    >
    > faultActor: null
    >
    > faultDetail:
    >
    > stackTrace: java.io.UnsupportedEncodingException: "UTF-8"
    >
    > at sun.io.Converters.getConverterClass(Converters.jav a:121)
    >
    > at sun.io.Converters.newConverter(Converters.java:152 )
    >
    > at sun.io.ByteToCharConverter.getConverter(ByteToChar Converter.java:81)
    >
    > at java.io.InputStreamReader.<init>(InputStreamReader .java:93)
    >
    > at com.ibm.xml.b2b.util.JavaEncodingSupport.readChara cters(Unknown Source)
    >
    > at
    > com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .convertByteStreamToUTF8(U
    > nknown Source)
    >
    > at
    > com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.setByteStreamSource
    > (Unknown Source)
    >
    > at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .setSource(Unknown
    > Source)
    >
    > at
    > com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.createParsedEntity(
    > Unknown Source)
    >
    > at util.DocumentEntityParserBase.parse(Unknown Source)
    >
    > at sax.SAX2DocumentEntityParserBase.parseEntity(Unkno wn Source)
    >
    > at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    >
    > at javax.xml.parsers.SAXParser.parse(Unknown Source)
    >
    > at
    > com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.parse(Dese
    > rializationContextImpl.java:256)
    >
    > at
    > com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEn velope(SOAPPart.java:698)
    >
    > at com.ibm.ws.webservices.engine.Message.getSOAPEnvel ope(Message.java:440)
    >
    > at
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.checkSOAPSem
    > antics(JAXRPCSOAPHandler.java:218)
    >
    > at
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.invokeServer
    > RequestHandler(JAXRPCSOAPHandler.java:188)
    >
    > at
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler$1.invoke(JAXRPCH
    > andler.java:232)
    >
    > at
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > .java:203)
    >
    > at
    > com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.
    > java:61)
    >
    > at
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > .java:217)
    >
    > at
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > .java:217)
    >
    > at
    > com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.jav
    > a:258)
    >
    > at
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet.doPost(WebSe
    > rvicesServlet.java:835)
    >
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    >
    > at
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServletBase.service(
    > WebServicesServletBase.java:341)
    >
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServle
    > tInstance.java:110)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecy
    > cleServlet.java:174)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServ
    > let.java:313)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecyc
    > leServlet.java:116)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java
    > :283)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidSer
    > vletReferenceState.java:42)
    >
    > at
    > com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletIns
    > tanceReference.java:40)
    >
    > at
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(
    > WebAppRequestDispatcher.java:948)
    >
    > at
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppReques
    > tDispatcher.java:530)
    >
    > at
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequest
    > Dispatcher.java:176)
    >
    > at
    > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    >
    > at
    > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker
    > .java:201)
    >
    > at
    > com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(C
    > achedInvocation.java:71)
    >
    > at
    > com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletReq
    > uestProcessor.java:182)
    >
    > at
    > com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListene
    > r.java:334)
    >
    > at
    > com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.jav
    > a:56)
    >
    > at
    > com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    >
    > at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    >
    > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    >
    > Thanks,
    > Sai
    > syeruban@in.ibm.com
    >
    >


  3. Re: java.io.UnsupportedEncodingException: "UTF-8"



    xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://cs90.cde.ebcbs.com"
    xmlns:intf="http://cs90.cde.ebcbs.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">



    targetNamespace="http://cs90.cde.ebcbs.com"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://cs90.cde.ebcbs.com"
    xmlns:intf="http://cs90.cde.ebcbs.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">







    type="xsd:string"/>











    type="impl:CS90MacroDetails"/>















    type="xsd:string"/>























    type="impl:CS90MacroData"/>













    art element="intf:getCS90MacroData" name="parameters"/>





    art element="intf:getCS90MacroDataResponse" name="parameters"/>



    ortType name="CS90Macro">

    peration name="getCS90MacroData">

    name="getCS90MacroDataRequest"/>

    utput message="intf:getCS90MacroDataResponse"
    name="getCS90MacroDataResponse"/>

    peration>

    ortType>



    transport="http://schemas.xmlsoap.org/soap/http"/>

    peration name="getCS90MacroData">

    peration soapAction=""/>







    utput name="getCS90MacroDataResponse">



    utput>

    peration>






    ort binding="intf:CS90MacroSoapBinding" name="CS90Macro">

    location="http://localhost:9081/CS90MacroWS/services/CS90Macro"/>

    ort>





    "Todd Kaplinger" wrote in message
    news:d3eqls$306g$1@news.boulder.ibm.com...
    > I am assuming you are passing a xml document. Can you post that file?
    >
    > Sai Kumar wrote:
    > > Hi!
    > > I'm getting this problem in WAS5.0 console(logs),
    > > java.io.UnsupportedEncodingException: "UTF-8". When i'm trying to access
    > > EJB-WebService from outside the Websphere container. Please see if you

    help.
    > >
    > > [4/11/05 21:28:31:782 IST] b213e61 WebServicesSe E
    > > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet

    WSWS3227E:
    > > Error: Exception:
    > >
    > > [4/11/05 21:28:31:812 IST] b213e61 WebServicesSe E
    > > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet

    TRAS0014I:
    > > The following exception was logged WebServicesFault
    > >
    > > faultCode:

    {http://websphere.ibm.com/webservices/}Server.generalException
    > >
    > > faultString: java.io.UnsupportedEncodingException: "UTF-8"
    > >
    > > faultActor: null
    > >
    > > faultDetail:
    > >
    > > stackTrace: java.io.UnsupportedEncodingException: "UTF-8"
    > >
    > > at sun.io.Converters.getConverterClass(Converters.jav a:121)
    > >
    > > at sun.io.Converters.newConverter(Converters.java:152 )
    > >
    > > at sun.io.ByteToCharConverter.getConverter(ByteToChar Converter.java:81)
    > >
    > > at java.io.InputStreamReader.<init>(InputStreamReader .java:93)
    > >
    > > at com.ibm.xml.b2b.util.JavaEncodingSupport.readChara cters(Unknown

    Source)
    > >
    > > at
    > >

    com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .convertByteStreamToUTF8(U
    > > nknown Source)
    > >
    > > at
    > >

    com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.setByteStreamSource
    > > (Unknown Source)
    > >
    > > at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .setSource(Unknown
    > > Source)
    > >
    > > at
    > >

    com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.createParsedEntity(
    > > Unknown Source)
    > >
    > > at util.DocumentEntityParserBase.parse(Unknown Source)
    > >
    > > at sax.SAX2DocumentEntityParserBase.parseEntity(Unkno wn Source)
    > >
    > > at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    > >
    > > at javax.xml.parsers.SAXParser.parse(Unknown Source)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.parse(Dese
    > > rializationContextImpl.java:256)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEn velope(SOAPPart.java:698)
    > >
    > > at

    com.ibm.ws.webservices.engine.Message.getSOAPEnvel ope(Message.java:440)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.checkSOAPSem
    > > antics(JAXRPCSOAPHandler.java:218)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.invokeServer
    > > RequestHandler(JAXRPCSOAPHandler.java:188)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler$1.invoke(JAXRPCH
    > > andler.java:232)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > > .java:203)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.
    > > java:61)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > > .java:217)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    > > .java:217)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.jav
    > > a:258)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet.doPost(WebSe
    > > rvicesServlet.java:835)
    > >
    > > at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    > >
    > > at
    > >

    com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServletBase.service(
    > > WebServicesServletBase.java:341)
    > >
    > > at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServle
    > > tInstance.java:110)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecy
    > > cleServlet.java:174)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServ
    > > let.java:313)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecyc
    > > leServlet.java:116)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java
    > > :283)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidSer
    > > vletReferenceState.java:42)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletIns
    > > tanceReference.java:40)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(
    > > WebAppRequestDispatcher.java:948)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppReques
    > > tDispatcher.java:530)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequest
    > > Dispatcher.java:176)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker
    > > .java:201)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(C
    > > achedInvocation.java:71)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletReq
    > > uestProcessor.java:182)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListene
    > > r.java:334)
    > >
    > > at
    > >

    com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.jav
    > > a:56)
    > >
    > > at
    > >

    com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    > >
    > > at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    > >
    > > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    > >
    > > Thanks,
    > > Sai
    > > syeruban@in.ibm.com
    > >
    > >




  4. Re: java.io.UnsupportedEncodingException: "UTF-8"

    This looks fine. I would suggest opening a PMR.

    Sai Kumar wrote:
    >
    >
    > > xmlns:apachesoap="http://xml.apache.org/xml-soap"
    > xmlns:impl="http://cs90.cde.ebcbs.com"
    > xmlns:intf="http://cs90.cde.ebcbs.com"
    > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    >
    >
    >
    > > targetNamespace="http://cs90.cde.ebcbs.com"
    > xmlns="http://www.w3.org/2001/XMLSchema"
    > xmlns:apachesoap="http://xml.apache.org/xml-soap"
    > xmlns:impl="http://cs90.cde.ebcbs.com"
    > xmlns:intf="http://cs90.cde.ebcbs.com"
    > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    >
    >
    >
    >
    >
    >
    >
    > > type="xsd:string"/>
    >
    >

    >
    >

    >
    >

    >
    >
    >
    >
    >
    > > type="impl:CS90MacroDetails"/>
    >
    >
    >
    >
    >
    >

    >
    >

    >
    >
    >
    >
    >
    >
    >
    > > type="xsd:string"/>
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >

    >
    >

    >
    >
    >
    >
    >
    >
    >
    > > type="impl:CS90MacroData"/>
    >
    >

    >
    >

    >
    >

    >
    >

    >
    >

    >
    >
    >
    > art element="intf:getCS90MacroData" name="parameters"/>
    >
    >

    >
    >
    >
    > art element="intf:getCS90MacroDataResponse" name="parameters"/>
    >
    >

    >
    > ortType name="CS90Macro">
    >
    > peration name="getCS90MacroData">
    >
    > > name="getCS90MacroDataRequest"/>
    >
    > utput message="intf:getCS90MacroDataResponse"
    > name="getCS90MacroDataResponse"/>
    >
    >
    peration>
    >
    >
    ortType>
    >
    >
    >
    > > transport="http://schemas.xmlsoap.org/soap/http"/>
    >
    > peration name="getCS90MacroData">
    >
    > peration soapAction=""/>
    >
    >
    >
    >
    >
    >

    >
    > utput name="getCS90MacroDataResponse">
    >
    >
    >
    >
    utput>
    >
    >
    peration>
    >
    >
    >

    >
    >
    >
    > ort binding="intf:CS90MacroSoapBinding" name="CS90Macro">
    >
    > > location="http://localhost:9081/CS90MacroWS/services/CS90Macro"/>
    >
    >
    ort>
    >
    >

    >
    >

    >
    > "Todd Kaplinger" wrote in message
    > news:d3eqls$306g$1@news.boulder.ibm.com...
    >
    >>I am assuming you are passing a xml document. Can you post that file?
    >>
    >>Sai Kumar wrote:
    >>
    >>>Hi!
    >>> I'm getting this problem in WAS5.0 console(logs),
    >>>java.io.UnsupportedEncodingException: "UTF-8". When i'm trying to access
    >>>EJB-WebService from outside the Websphere container. Please see if you

    >
    > help.
    >
    >>>[4/11/05 21:28:31:782 IST] b213e61 WebServicesSe E
    >>>com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet

    >
    > WSWS3227E:
    >
    >>>Error: Exception:
    >>>
    >>>[4/11/05 21:28:31:812 IST] b213e61 WebServicesSe E
    >>>com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet

    >
    > TRAS0014I:
    >
    >>>The following exception was logged WebServicesFault
    >>>
    >>>faultCode:

    >
    > {http://websphere.ibm.com/webservices/}Server.generalException
    >
    >>>faultString: java.io.UnsupportedEncodingException: "UTF-8"
    >>>
    >>>faultActor: null
    >>>
    >>>faultDetail:
    >>>
    >>>stackTrace: java.io.UnsupportedEncodingException: "UTF-8"
    >>>
    >>>at sun.io.Converters.getConverterClass(Converters.jav a:121)
    >>>
    >>>at sun.io.Converters.newConverter(Converters.java:152 )
    >>>
    >>>at sun.io.ByteToCharConverter.getConverter(ByteToChar Converter.java:81)
    >>>
    >>>at java.io.InputStreamReader.<init>(InputStreamReader .java:93)
    >>>
    >>>at com.ibm.xml.b2b.util.JavaEncodingSupport.readChara cters(Unknown

    >
    > Source)
    >
    >>>at
    >>>

    >
    > com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .convertByteStreamToUTF8(U
    >
    >>>nknown Source)
    >>>
    >>>at
    >>>

    >
    > com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.setByteStreamSource
    >
    >>>(Unknown Source)
    >>>
    >>>at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer .setSource(Unknown
    >>>Source)
    >>>
    >>>at
    >>>

    >
    > com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityF actory.createParsedEntity(
    >
    >>>Unknown Source)
    >>>
    >>>at util.DocumentEntityParserBase.parse(Unknown Source)
    >>>
    >>>at sax.SAX2DocumentEntityParserBase.parseEntity(Unkno wn Source)
    >>>
    >>>at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    >>>
    >>>at javax.xml.parsers.SAXParser.parse(Unknown Source)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.parse(Dese
    >
    >>>rializationContextImpl.java:256)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEn velope(SOAPPart.java:698)
    >
    >>>at

    >
    > com.ibm.ws.webservices.engine.Message.getSOAPEnvel ope(Message.java:440)
    >
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.checkSOAPSem
    >
    >>>antics(JAXRPCSOAPHandler.java:218)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCSOAPHandler.invokeServer
    >
    >>>RequestHandler(JAXRPCSOAPHandler.java:188)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler$1.invoke(JAXRPCH
    >
    >>>andler.java:232)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    >
    >>>.java:203)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.
    >
    >>>java:61)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    >
    >>>.java:217)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper
    >
    >>>.java:217)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.jav
    >
    >>>a:258)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet.doPost(WebSe
    >
    >>>rvicesServlet.java:835)
    >>>
    >>>at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServletBase.service(
    >
    >>>WebServicesServletBase.java:341)
    >>>
    >>>at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServle
    >
    >>>tInstance.java:110)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecy
    >
    >>>cleServlet.java:174)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServ
    >
    >>>let.java:313)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecyc
    >
    >>>leServlet.java:116)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java
    >
    >>>:283)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidSer
    >
    >>>vletReferenceState.java:42)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletIns
    >
    >>>tanceReference.java:40)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(
    >
    >>>WebAppRequestDispatcher.java:948)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppReques
    >
    >>>tDispatcher.java:530)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequest
    >
    >>>Dispatcher.java:176)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    >
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker
    >
    >>>.java:201)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(C
    >
    >>>achedInvocation.java:71)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletReq
    >
    >>>uestProcessor.java:182)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListene
    >
    >>>r.java:334)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.jav
    >
    >>>a:56)
    >>>
    >>>at
    >>>

    >
    > com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    >
    >>>at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    >>>
    >>>at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    >>>
    >>>Thanks,
    >>>Sai
    >>>syeruban@in.ibm.com
    >>>
    >>>

    >
    >
    >


  5. Re: java.io.UnsupportedEncodingException: "UTF-8"

    I remember there was a bug at one point where it had to be in quotes,
    or not in quotes, or something like that......

  6. Re: java.io.UnsupportedEncodingException: "UTF-8"

    Yes. Even i have come across such a solution. I'm trying to write a Servlet
    Filter to do this.If anybody already has please provide it.

    Thanks,
    Sai
    "Don Brady" wrote in message
    news:0egp5193c65qv8gi22h12a0rd1h14ve2an@4ax.com...
    > I remember there was a bug at one point where it had to be in quotes,
    > or not in quotes, or something like that......




+ Reply to Thread