I have changed all vector elements in string format (including inside vector). It works fine. thanks. My problem was I converted vector Elements to String twice (I mean I converted the vector that has been converted before...), that's why it always returned ClassCastException.
Michael Landon - IBN <[EMAIL PROTECTED]> wrote:
Michael Landon - IBN <[EMAIL PROTECTED]> wrote:
We ran into a similar issue & found that our vectors included hashtables & those hashtables had non-String keys (something this version of XML-RPC expects during translation). By changing our keys to strings, everything worked fine. You might want to check for that as a starting point.Michael----- Original Message -----From: Indra SyafruddinSent: Wednesday, June 29, 2005 3:32 PMSubject: vector inside vectorI am trying to send vector request. I want to receive another vector inside vector. both outside and inside vector' components are all String.My problem is... I can send request. It come to webserver well. But I can't get the response.hereparameters = new Vector();
parameters.addElement(fansMember);
parameters = FansVectorConvert.Convert(parameters);
System.out.println(client.execute("request.register",parameters));here's the response class:public Vector register(String name,String ip, String bandwidth, Vector media) {
System.out.println("get new comer from " + ip);
System.out.println("with media : " + media);
Vector mediaData = new Vector();
ListMember.addMember(name,ip,bandwidth,FansVectorConvert.getMedia(media));
System.out.println(FansVectorConvert.Convert(ListMember.getAllMember()));
return FansVectorConvert.Convert(ListMember.getAllMember());FansVectorConvert is a static class to convert my objects in vector (and the vector inside it) into String component, and vice versa. I use this because I don't know how to create handler for my object.the result from :System.out.println(client.execute("request.register",parameters));isorg.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.ClassCastException: java.lang.String
Does anyone know how to solve it? thanks anyway
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
