• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 1.6 AxisFault:ClassCastException  RSS feed

Simran Singh
Posts: 4
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a web service client using Axis2 1.6version, I am able to generate the client stubs and even some operations are working fine.

I got stuck with a Submit operation of webservice where i have send an object with all the data to be saved on server side. When i start the execution of program I am getting the following error:

org.apache.axis2.AxisFault: java.lang.IllegalArgumentException: java.lang.ClassCastException@d1e43d
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

and on further diagnosing the issue I found that execution stops at line:
//execute the operation client

Currently I am testing this through a simple java class and the operations with _operationClient.execute(false) are working fine (like getStatistics, getSavedForms).


Hikari Shidou
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be WebService and WSDL inconsistency (that's why we should NEVER manually build or edit automatically created WSDL).

For sure the problem happens when you execute the WebService communication. Try to provide its WSDL and your class so we can take a look, but since your client is created by Axis2 it's most certainly server-side problem.

Also, use an HTTP monitor to see raw SOAP envelopes!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!