"It was not possible to retrieve ruleset information" 在 Bluemix 上执行业务规则时

"It was not possible to retrieve ruleset information" when executing Business rules on Bluemix

在 Bluemix 上执行部署在业务规则服务上的规则时,我看到以下异常:

ilog.rules.res.session.IlrSessionCreationException: An error occurred while the rule session was created: com.ibm.rules.res.xu.internal.XUException: It was not possible to retrieve ruleset information: /MyRuleApp. ilog.rules.res.persistence.IlrDAOException: Wrong path used:"/MyRuleApp". ilog.rules.res.session.IlrJ2SESessionFactory.createStatefulSession(IlrJ2SESessionFactory.java:125) ilog.rules.res.session.impl.IlrSessionFactoryBase.createStatefulSession(IlrSessionFactoryBase.java:158) com.ibm.rules.htds.DecisionServiceController.getStatefulSessionBase(DecisionServiceController.java:163) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:836) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750)

我为规则服务的 REST POST 请求指定了一个不完整的 URL,它没有指定规则集的路径:

https://brsv2-12345678.ng.bluemix.net/DecisionService/rest/MyRuleApp

更新 URL 以指向 RuleApp 版本和规则集版本后,POST 请求成功执行:

https://brsv2-12345678.ng.bluemix.net/DecisionService/rest/MyRuleApp/1.0/myrules/1.0