And why not re-generating exception by parsing the message exception ?

...
} catch (XmlRpcException xre) {

String s = xre.getMessage();
s = s.substring(s.indexOf("test.xmlrpc.exception"));
int deuxPoints = s.indexOf(":");
String strException = s.substring(0, deuxPoints);
String message = s.substring(deuxPoints);

Class cls = Class.forName(strException);
Constructor con = cls.getConstructor(new Class[]{String.class});
Exception e = (Exception)con.newInstance(new Object[]{message});
throw e;
...

Pierre-Yves VAROUX.

Reply via email to