Zhi,
Don't you need to:
Vector args = new Vector();
args.add(new Vector());
client.execute("handler.abc", args);
XmlRpcClient.execute() requires a Vector with a list of method arguments
inside. Since your handler method requires a vector, you need to embed
a vector in a vector.
Or, to put it another way, with your execute invocation (below), it
would work if your abc() method didn't have any arguments, like:
Vector public abc() { ... }
Adam
Han, Zhi (Zhi) wrote:
> I have a method abc in handler, like
> Vector public abc (Vector v)
> {
> ...
> }
>
> Why I always get illegal argument exception for method abc
>
> On client side, I use
>
> client.execute("handler.abc", new vector());
>
> Thanks,
>
> Zhi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]