[
https://issues.apache.org/jira/browse/AXIS2-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034280#comment-13034280
]
Ankur Avlani commented on AXIS2-5045:
-------------------------------------
Please have a look at the logs:
DEBUG [main] (Wire.java:70) - >> "<?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:RetrieveServiceContent
xmlns:ns1="urn:vim25"><ns1:_this
type="ServiceInstance">ServiceInstance</ns1:_this></ns1:RetrieveServiceContent></soapenv:Body></soapenv:Envelope>[\r][\n]"
DEBUG [main] (Wire.java:70) - >>
"--MIMEBoundary_55435fc9617d67aaf9de124ac5be8768dcc245ad87dce2fc--[\r][\n]"
DEBUG [main] (EntityEnclosingMethod.java:508) - Request body sent
DEBUG [main] (Wire.java:70) - << "HTTP/1.1 400 Bad Request[\r][\n]"
DEBUG [main] (Wire.java:70) - << "HTTP/1.1 400 Bad Request[\r][\n]"
DEBUG [main] (Wire.java:70) - << "Date: Mon, 16 May 2011 13:19:06 GMT[\r][\n]"
DEBUG [main] (Wire.java:70) - << "Set-Cookie:
vmware_soap_session="52c4097d-6776-e966-762e-0b9bb036bfeb"; Path=/; [\r][\n]"
DEBUG [main] (Wire.java:70) - << "Cache-Control: no-cache[\r][\n]"
DEBUG [main] (Wire.java:70) - << "Connection: close[\r][\n]"
DEBUG [main] (Wire.java:70) - << "Content-Type: text; charset=plain[\r][\n]"
DEBUG [main] (Wire.java:70) - << "Content-Length: 0[\r][\n]"
DEBUG [main] (Wire.java:70) - << "[\r][\n]"
DEBUG [main] (HttpMethodBase.java:1651) - Cookie accepted: "$Version=0;
vmware_soap_session=52c4097d-6776-e966-762e-0b9bb036bfeb; $Path=/"
DEBUG [main] (Phase.java:340) - [MessageContext:
logID=urn:uuid:5D5C7C6A56C84A8DB51305576889962] Invoking flowComplete() in
Phase "Security"
DEBUG [main] (Phase.java:340) - [MessageContext:
logID=urn:uuid:5D5C7C6A56C84A8DB51305576889962] Invoking flowComplete() in
Phase "MessageOut"
DEBUG [main] (Phase.java:340) - [MessageContext:
logID=urn:uuid:5D5C7C6A56C84A8DB51305576889962] Invoking flowComplete() in
Phase "PolicyDetermination"
DEBUG [main] (Phase.java:340) - [MessageContext:
logID=urn:uuid:5D5C7C6A56C84A8DB51305576889962] Invoking flowComplete() in
Phase "RMPhase"
DEBUG [main] (Phase.java:340) - [MessageContext:
logID=urn:uuid:5D5C7C6A56C84A8DB51305576889962] Invoking flowComplete() in
Phase "OperationOutPhase"
DEBUG [main] (TransportUtils.java:211) - Could not find a Builder for type
(text). Using SOAP.
DEBUG [main] (HttpMethodBase.java:1008) - Should close connection in response
to directive: close
DEBUG [main] (HttpConnection.java:1178) - Releasing connection back to
connection manager.
DEBUG [main] (MultiThreadedHttpConnectionManager.java:979) - Freeing
connection, hostConfig=HostConfiguration[host=https://172.17.75.235]
DEBUG [main] (IdleConnectionHandler.java:76) - Adding connection at:
1305576905140
DEBUG [main] (MultiThreadedHttpConnectionManager.java:961) - Notifying no-one,
there are no waiting threads
If I create the client in Axis 1.4 it works, but if i create the client in Axis
2, it doesnt.
Thanks,
Ankur
> 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]