- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
BA 6.6 evaluation error in loop
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-31-2009 09:37 AM
Hi,
I'm trying to validate data using Blaze Advisor rule repository from Java.
My SRL function :
try
{
apply Representative_Ruleset();
aCount is an integer initially gGoodsItems.count;
aIndex is an integer initially 0;
while (aIndex < aCount) do
{
apply GoodsItems_CommodityCode_Ruleset(aIndex);
apply GoodsItems_Packages_Marks_Ruleset(aIndex);
aIndex = aIndex + 1;
}
}
catch a Throwable with
{
it.printStackTrace();
}
It throws a NdServiceSessionRuntimeException in the while loop on exit of the first apply.
Exception disapears if both "apply" in the loop are commented.
Full exception trace :
com.blazesoft.server.base.NdServiceSessionRuntimeE
Service 'Decision Services'. Server 'Decision Services' on host 'yyyy'.
Evaluation error
Service session Id number 39.
Service 'Decision Services'. Server 'Decision Services' on host 'yyyy'.
Deleting local object 'Anonymous3#8'
at Decision Services.rb at line 2860 (76736 -> 76777)
at Decision Services.rb at line 2860 (76736 -> 76777)
com.blazesoft.engines.rules.NdRuntimeException: 'Anonymous3#8' is already deleted.
at com.blazesoft.engines.rules.NdObject.WjHBKzO(:2001
at com.blazesoft.engines.rules.NdObject.WjHBKMM(:4700
at com.blazesoft.engines.rules.NdObject.WjHBKUU(:4842
at com.blazesoft.engines.rules.NdObject.release(:5006
at com.blazesoft.engines.rules.expressions.NdFunction
at com.blazesoft.engines.rules.expressions.NdFunction
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHBsBU.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.rete.WjHAXMK.WjHAXGE(:
at com.blazesoft.engines.rules.rete.WjHBtbG.WjHBtaZ(:
at com.blazesoft.engines.rules.rete.WjHBtbG.WjHAXBL(:
at com.blazesoft.engines.rules.rete.WjHAXMK.WjHAXJH(:
at com.blazesoft.engines.rules.rete.WjHBtbG.WjHAXBL(:
at com.blazesoft.engines.rules.rete.WjHAXMK.WjHAXJH(:
at com.blazesoft.engines.rules.rete.WjHBMQA.WjHBMPZ(:
at com.blazesoft.engines.rules.NdClass.WjHBLSW(:2454)
at com.blazesoft.engines.rules.NdClass.WjHBLTX(:2477)
at com.blazesoft.engines.rules.NdClass.WjHBLSW(:2458)
at com.blazesoft.engines.rules.WjHBXRP.WjHBLTX(:385)
at com.blazesoft.engines.rules.NdClass.WjHBLSW(:2458)
at com.blazesoft.engines.rules.NdObject.WjHBKJJ(:4635
at com.blazesoft.engines.rules.NdScriptContext.WjHBTR
at com.blazesoft.engines.rules.NdObject.WjHBKzO(:2098
at com.blazesoft.engines.rules.NdObject.WjHBKXX(:4904
at com.blazesoft.engines.rules.NdEvaluationContext.Wj
at com.blazesoft.engines.rules.NdEvaluationContext.Wj
at com.blazesoft.engines.rules.NdEvaluationContext.fr
at com.blazesoft.engines.rules.expressions.NdFunction
at com.blazesoft.engines.rules.expressions.NdFunction
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHBrxD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHBYaP.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.NdFunction$FunctionEva
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLQ
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLV
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.engines.flow.WjHATZC.WjHGPWR(:112)
at com.blazesoft.engines.flow.WjHGPOT.WjHAZIB(:533)
at com.blazesoft.engines.flow.WjHGQLV.WjHGWSJ(:394)
at com.blazesoft.engines.flow.WjHByQO.WjHUosA(:814)
at com.blazesoft.engines.flow.WjHByQO.WjHUorZ(:577)
at com.blazesoft.engines.rules.NdRuleflowFunctional.i
at com.blazesoft.engines.rules.NdRuleflowFunctional$W
at com.blazesoft.engines.rules.NdRuleflowFunctional$W
at com.blazesoft.engines.rules.NdRuleflowFunctional$W
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLQ
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLV
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.engines.flow.WjHATZC.WjHGPWR(:112)
at com.blazesoft.engines.flow.WjHGPOT.WjHAZIB(:533)
at com.blazesoft.engines.flow.WjHGQLV.WjHGWSJ(:394)
at com.blazesoft.engines.flow.WjHByQO.WjHUosA(:814)
at com.blazesoft.engines.flow.WjHByQO.run(:499)
at com.blazesoft.engines.rules.NdScriptContext.WjHBTq
at com.blazesoft.engines.rules.NdDefCommonBuiltIns.ex
at sun.reflect.GeneratedMethodAccessor37.invoke(Unkno
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
at java.lang.reflect.Method.invoke(Method.java:597)
at com.blazesoft.engines.rules.java.WjHBkmV.WjHBklU(:
at com.blazesoft.engines.rules.java.WjHBkmV.invoke(:4
at com.blazesoft.objects.base.NdDefaultExternalContex
at com.blazesoft.engines.rules.expressions.NdMethodIn
at com.blazesoft.engines.rules.expressions.NdCallExpr
at com.blazesoft.engines.rules.expressions.WjHBuyB.Wj
at com.blazesoft.engines.rules.expressions.NdCallExpr
at com.blazesoft.engines.rules.expressions.NdCallExpr
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAVGD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAVGD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHBYaP.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAVGD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.WjHAPdD.Wj
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.expressions.NdExpressi
at com.blazesoft.engines.rules.NdFunction$FunctionEva
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLQ
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.engines.rules.NdFunctionalItem.WjHLV
at com.blazesoft.engines.rules.NdFunctionalItem.catch
at com.blazesoft.server.deploy.rules.NdDeployRulesSer
at com.blazesoft.server.deploy.rules.NdDeployRulesSer
at com.blazesoft.server.deploy.rules.NdDeployInvokerR
at com.blazesoft.server.rules.NdRulesServiceAgent.pro
at com.blazesoft.server.rules.NdRulesServiceAgent.run
at com.blazesoft.server.local.NdLocalServiceExecConte
at com.blazesoft.server.local.NdLocalService.runAgent
at com.blazesoft.server.local.NdLocalService.invokeSe
at com.blazesoft.server.local.NdLocalService.invokeSe
at com.blazesoft.server.deploy.NdStatelessServer.SiPs
at com.blazesoft.server.deploy.NdStatelessServer.invo
at com.blazesoft.server.deploy.NdStatelessServer.invo
at eu.erp.dms.mdas.validation.server.RulesRepoServer.
at eu.erp.dms.mdas.validation.bean.RuleServerImpl.val
at eu.erp.dms.mdas.validation.test.RulesTest.validate
at eu.erp.dms.mdas.validation.test.RulesTest.validate
at eu.erp.dms.mdas.validation.test.CommonRulesTests.R
at eu.erp.dms.mdas.validation.test.IE615Test_Ext.R13L
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ
at sun.reflect.NativeMethodAccessorImpl.invoke(Native
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.test.context.junit4.SpringTest
at org.springframework.test.context.junit4.SpringMeth
at org.springframework.test.context.junit4.SpringMeth
at org.springframework.test.context.junit4.SpringMeth
at org.springframework.test.context.junit4.SpringMeth
at org.springframework.test.context.junit4.SpringMeth
at org.springframework.test.context.junit4.SpringJUni
at org.junit.internal.runners.JUnit4ClassRunner.runMe
at org.junit.internal.runners.JUnit4ClassRunner$1.run
at org.junit.internal.runners.ClassRoadie.runUnprotec
at org.junit.internal.runners.ClassRoadie.runProtecte
at org.junit.internal.runners.JUnit4ClassRunner.run(J
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR
at org.eclipse.jdt.internal.junit.runner.TestExecutio
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
Where is the problem ?
Solved! Go to Solution.
Re: BA 6.6 evaluation error in loop
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
03-31-2009 04:14 PM
I don't think it has anything to do with the loop. It looks like there is some object that is being manipulated by your ruleset in such way that its hash code changes. As a result, it cannot be found and deleted from the working memory or something along these lines.
Check your Java class code to see how the hashCode()/equals() methods are implemented and try to make the object's hash code immutable for the duration of the rule session.
Blaze Solution Architect
Re: BA 6.6 evaluation error in loop
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
04-17-2009 05:13 PM
Blaze Solution Architect

