Hi,
I have the following drl file.
==================================
package bugTestingFail
rule "Price hits Target"
when
eval ( true )
then
end
==================================
It is managed by a RuleAgent.
However, when I change the drl file from the source, I get the following
exception:
RuleAgent(MARKET_DATA) INFO (Wed Aug 06 15:43:53 EST 2008): Applying changes to
the rulebase.
RuleAgent(MARKET_DATA) EXCEPTION (Wed Aug 06 15:43:53 EST 2008):
org.drools.reteoo.EvalConditionNode$EvalMemory cannot be cast to
org.drools.reteoo.BetaMemory. Stack trace should follow.
java.lang.ClassCastException: org.drools.reteoo.EvalConditionNode$EvalMemory
cannot be cast to org.drools.reteoo.BetaMemory
at org.drools.reteoo.EvalConditionNode.doRemove(EvalConditionNode.java:265)
at org.drools.common.BaseNode.remove(BaseNode.java:87)
at org.drools.reteoo.RuleTerminalNode.doRemove(RuleTerminalNode.java:505)
at org.drools.common.BaseNode.remove(BaseNode.java:87)
at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:242)
at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:366)
at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:705)
at org.drools.common.AbstractRuleBase.removePackage(AbstractRuleBase.java:622)
at org.drools.agent.PackageProvider.removePackage(PackageProvider.java:45)
at org.drools.agent.PackageProvider.applyChanges(PackageProvider.java:63)
at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:320)
at org.drools.agent.RuleAgent$2.run(RuleAgent.java:438)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
This only happens to me when I am editing rules files that have an eval
condition.
I this a bug?
Show replies by date