"Unable to run test .. null object" 关于 Bluemix 上的业务规则服务

"Unable to run test .. null object" on Business Rules service on Bluemix

在 Bluemix 上的业务规则服务上测试我的规则时,出现以下错误:

"Unable to run test Error when executing the ruleset /MyRuleApp/1.0/myrules/1.0

An error occurred while the rule session was called: com.ibm.rules.res.xu.internal.XUException: An error occurred during the ruleset execution. ilog.rules.engine.IlrUserRuntimeException:

null object when invoking public void myMethod()"

我错误地构造了输入参数(缺少左大括号):

    "foo": {
        "name": "foo",
        "id": "bar"
    }
}

添加左大括号后,我就可以运行测试成功了。