This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Axis 1.4 Problem with DIME attachment
No Such Operation Exception
Consuming Webservice in Java
unable to run the Axis client
Axis 1.4 username/password auth with stubs