aspose file tools*
The moose likes Web Services and the fly likes org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler" Watch "org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler" New topic
Author

org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler

Prashant Dhorda
Greenhorn

Joined: May 29, 2012
Posts: 2
Following is the error I am getting while invoking a WebService:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler
at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)
at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

I am setting the following:

org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[13]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("A valid URL", "A valid name"));

java.lang.Object _resp = _call.invoke(new java.lang.Object[] {request}); <--- Here is where I am getting the exception.

I am getting a the above issue while trying to invoke a WebService. I have also made sure that a correct version (1.4) of Axis jar is in place.

Thanks,
Prashant
Prashant Dhorda
Greenhorn

Joined: May 29, 2012
Posts: 2
Would really appreciate if anyone can help here.

Thanks,
Prashant
Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
hey I am also facing same problem did you solve this problem?

Thanks

Vaishali


SCJP, SCJD
Preparing for SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler