Actually,

On client side, structure is

Hashtable h = new Hashtable();
h.put("user", "user");
h.put("pass", "pass")
Vector v = new Vector()
v.add(h);

Vector params = new Vector()
params.add(v);

Client.execute("handler.abc", params)

On server side, method

public Vector abc(Vector arg)
{
Hashtable data = (Hashtable)arg.firstElement()
...
Vector result = new Vector();

//add some data to result

return result;
}

-----Original Message-----
From: Jochen Wiedmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 3:03 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: Illegal argument


On 6/22/06, Han, Zhi (Zhi) <[EMAIL PROTECTED]> wrote:

> Vector args = new Vector();
> args.add(new Vector());
> client.execute("handler.abc", args);

That means, you are sending an empty list, or array as arguments. In
other words, the method being called is like

    public void foo(Vector pArgs)

or

    public void foo(Object[] pArgs)

Is that the case?



-- 
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

---------------------------------------------------------------------
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]

Reply via email to