[jboss-user] [JBoss Web Services] - Content Type UnsupportedEncodingException

rhpt do-not-reply at jboss.com
Thu Apr 12 12:24:46 EDT 2012


rhpt [https://community.jboss.org/people/rhpt] created the discussion

"Content Type UnsupportedEncodingException"

To view the discussion, visit: https://community.jboss.org/message/729650#729650

--------------------------------------------------------------
When I attempt to consume a webservice running on JBoss 4.0.2, it returns the following error

org.apache.axis2.AxisFault: java.io.UnsupportedEncodingException: utf-8,text/xml
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
    at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
    at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:414)
    at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:377)
    at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:165)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    ...

Caused by: javax.xml.stream.XMLStreamException: java.io.UnsupportedEncodingException: utf-8,text/xml
    at com.ctc.wstx.stax.WstxOutputFactory.createSW(WstxOutputFactory.java:257)
    at com.ctc.wstx.stax.WstxOutputFactory.createXMLStreamWriter(WstxOutputFactory.java:124)
    at org.apache.axiom.om.util.StAXUtils$5.run(StAXUtils.java:252)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:248)
    at org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:94)
    at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:470)
    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
    ... 30 more
Caused by: java.io.UnsupportedEncodingException: utf-8,text/xml
    at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:42)
    at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:83)
    at com.ctc.wstx.stax.WstxOutputFactory.createSW(WstxOutputFactory.java:253)

Searching around, it seems to be an issue with JAX-WS. However, I am not sure with whom I should reach out. I am hoping someone here could point me in the right direction, or have a workaround I can implement.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/729650#729650]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120412/045a0458/attachment.html 


More information about the jboss-user mailing list