* Adapt to strange behaviour of Apache XML-RPC 2.0 to return
exceptions instead of throwing them. Fixes bug 446.
This commit is contained in:
parent
dd8ac80a09
commit
b64c845258
1 changed files with 5 additions and 1 deletions
|
@ -124,7 +124,11 @@ public class XmlRpcObject extends BaseFunction {
|
||||||
}
|
}
|
||||||
|
|
||||||
Object result = client.execute(method, v);
|
Object result = client.execute(method, v);
|
||||||
|
// FIXME: Apache XML-RPC 2.0 seems to return Exceptions instead of
|
||||||
|
// throwing them.
|
||||||
|
if (result instanceof Exception) {
|
||||||
|
throw (Exception) result;
|
||||||
|
}
|
||||||
retval.put("result", retval, c.processXmlRpcArgument(result));
|
retval.put("result", retval, c.processXmlRpcArgument(result));
|
||||||
|
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue