2015-11-14 46 views
0

業務規則服務在測試上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()"

回答

0

我misconstructed輸入參數(它缺少大括號):

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

一旦我添加了大括號,我可以成功地運行測試。

+0

我拼寫錯誤時看到了同樣的錯誤。 –