You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by pcsantos <pc...@hotmail.com> on 2009/11/23 19:20:44 UTC

ClassCastException when calling Axis WebService method

Hi

I have an Axis (1.4.2) web service and a tomcat 4 server.
>From time to time, when calling the web method, an exception occurs as
follows:

method public java.lang.String[]
MyClass.UPDATE(java.lang.String[],java.lang.String[]) with arguments
[Ljava.lang.String;,[Ljava.lang.String;.  The arguments do not match the
signature.
java.lang.IllegalArgumentException: java.lang.ClassCastException@b5b09d

Can anyone give me a hint on this? 
I believe java.lang.String[] and [Ljava.lang.String are equivalent (and the
parameters being passed are of correct type String[]).. So, how can the
above error be happening since the argument types and those stated in the
call are the exact same?! 
And mostly, why does this error only happens from time to time? After a
restart to the server I no longer get this exception.. til next time.

Thanks in advance

-- 
View this message in context: http://old.nabble.com/ClassCastException-when-calling-Axis-WebService-method-tp26483330p26483330.html
Sent from the Axis - User mailing list archive at Nabble.com.