I'm currently retrieving data using XML-RPC, this is what I have:
Object[] params = new Object[]{param1, param2};
Object[] obj = new Object[]{};
try {
obj = (Object[]) client.execute("method.name", params);
} catch (XmlRpcException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return obj;
The problem is that sometimes it will return -1 and I'll get this error: java.lang.Integer cannot be cast to [Ljava.lang.Object; - I was wondering if there was a way around this problem?