[
https://issues.apache.org/jira/browse/AXIS2-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034243#comment-13034243
]
Andreas Veithen commented on AXIS2-5045:
----------------------------------------
The exception suggests that the Content-Type header returned by the server is
incorrect. Please enable DEBUG logging for
org.apache.axis2.transport.TransportUtils to see what the server sends.
> Axis2 Client produces exception java.io.UnsupportedEncodingException: plain
> ---------------------------------------------------------------------------
>
> Key: AXIS2-5045
> URL: https://issues.apache.org/jira/browse/AXIS2-5045
> Project: Axis2
> Issue Type: Bug
> Components: client-api
> Affects Versions: 1.5.4
> Environment: Windows
> Reporter: Ankur Avlani
> Priority: Blocker
>
> Hi,
> I have a web service running on Axis1(1.4). I have created the clients based
> on aAxis2-1.5.4. I am using https connection and I have created the
> TrustStore required. When I try to execute the client I get the following
> error :
> org.apache.axis2.AxisFault: [unsupported encoding]:
> java.io.UnsupportedEncodingException: plain
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> at
> com.hds.clientVM.VimServiceStub.retrieveServiceContent(VimServiceStub.java)
> at com.hds.vmClient.VMConnector.connect(VMConnector.java:82)
> at com.hds.vmClient.VMConnector.main(VMConnector.java:38)
> Caused by: javax.xml.stream.XMLStreamException: [unsupported encoding]:
> java.io.UnsupportedEncodingException: plain
> at
> com.ctc.wstx.io.DefaultInputResolver.constructOptimizedReader(DefaultInputResolver.java:195)
> at
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:628)
> at
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:324)
> at
> org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:95)
> at
> org.apache.axiom.util.stax.wrapper.WrappingXMLInputFactory.createXMLStreamReader(WrappingXMLInputFactory.java:116)
> at
> org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:95)
> at org.apache.axiom.om.util.StAXUtils$1.run(StAXUtils.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:198)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:190)
> at
> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:684)
> at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:215)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)
> ... 8 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]