You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Levi, Yogev" <Yo...@teoco.com> on 2020/12/06 09:32:30 UTC
java.lang.ClassCastException: org.apache.commons.httpclient.Header
cannot be cast to org.apache.axis2.context.NamedValue
server-to-server SOAP call doesn't work, because for some reason by default axis2 tries to use httpClient transport (instead of commons-httpClient) for sending and fails.
Any idea why and how to fix it?
I attached the axis2.xml
Caused by: java.lang.ClassCastException: org.apache.commons.httpclient.Header cannot be cast to org.apache.axis2.context.NamedValue
at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.addCustomHeaders(HTTPSenderImpl.java:884)
at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.executeMethod(HTTPSenderImpl.java:845)
at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:212)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:403)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:234)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
at tti.jcore.soa.service.JCoreServiceStub.getLoggedInUserApplicationRoleActions(JCoreServiceStub.java:2207)
at tti.jcore.soa.service.JCoreServiceImpl.getLoggedInUserApplicationRoleActions(JCoreServiceImpl.java:916)
... 43 more
BR,
Yogev Levi
Senior Software Engineer
TEOCO Ltd.
c:
+972 52 4455 708
p:
+972 3 9269752
E-mail: yogev.levi@teoco.com<ma...@teoco.com>
www.teoco.com<http://www.teoco.com/>
________________________________
PRIVILEGED AND CONFIDENTIAL
PLEASE NOTE: The information contained in this message is privileged and confidential, and is intended only for the use of the individual to whom it is addressed and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, or if any problems occur with transmission, please contact sender. Thank you.