"Error when executing the ruleset" 关于 Bluemix 上的业务规则服务
"Error when executing the ruleset" on the Business Rules service on Bluemix
在执行部署到 Bluemix 上的业务规则服务的规则时,我看到以下错误:
ilog.rules.res.decisionservice.IlrDecisionServiceException: Error when
executing the ruleset /MyRuleApp/1.0/myrules/1.0
com.ibm.rules.htds.DecisionServiceController.executeRuleset(DecisionServiceController.java:262)
com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.execute(RESTDecisionServiceServlet.java:930)
com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:843)
com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750)
com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:737)
com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:732)
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
我测试了来自 Bluemix 控制台的输入数据,发现我传递的有效负载格式不正确。
而不是
{
"foo": {
"bar": "bar"
}
}
我错过了输入参数的名称"foo":
{
{
"bar": "bar"
}
}
一旦我将正确的输入数据传递给规则,规则就会成功执行。
在执行部署到 Bluemix 上的业务规则服务的规则时,我看到以下错误:
ilog.rules.res.decisionservice.IlrDecisionServiceException: Error when executing the ruleset /MyRuleApp/1.0/myrules/1.0 com.ibm.rules.htds.DecisionServiceController.executeRuleset(DecisionServiceController.java:262) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.execute(RESTDecisionServiceServlet.java:930) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:843) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:737) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:732) javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
我测试了来自 Bluemix 控制台的输入数据,发现我传递的有效负载格式不正确。
而不是
{
"foo": {
"bar": "bar"
}
}
我错过了输入参数的名称"foo":
{
{
"bar": "bar"
}
}
一旦我将正确的输入数据传递给规则,规则就会成功执行。