[
https://jira.jboss.org/jira/browse/JBRULES-1719?page=com.atlassian.jira.p...
]
Mark Proctor updated JBRULES-1719:
----------------------------------
Summary: EvalConditionNode removal throws ClassCastException (was: eval rule in
RuleAgent)
EvalConditionNode removal throws ClassCastException
---------------------------------------------------
Key: JBRULES-1719
URL:
https://jira.jboss.org/jira/browse/JBRULES-1719
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler
Affects Versions: 5.0.0.M1
Reporter: niall oriordan
Assignee: Edson Tirelli
Fix For: 5.0.0.M5
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 except
ion:
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira