【问题标题】:"Unable to run test .. null object" on Business Rules service on BluemixBluemix 上的业务规则服务上的“无法运行测试 .. 空对象”
【发布时间】:2015-11-14 06:10:00
【问题描述】:

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

"无法运行测试 执行规则集时出错 /MyRuleApp/1.0/myrules/1.0

调用规则会话时发生错误: com.ibm.rules.res.xu.internal.XUException: 期间发生错误 规则集执行。 ilog.rules.engine.IlrUserRuntimeException:

调用public void myMethod()时为空对象"

【问题讨论】:

    标签: ibm-cloud business-rules


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      相关资源
      最近更新 更多