* 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);
|
||||
|
||||
// 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));
|
||||
|
||||
} catch (Exception x) {
|
||||
|
|
Loading…
Add table
Reference in a new issue