[jboss-jira] [JBoss JIRA] (JBRULES-3515) Getting runtime exception while I remove a validation Rule in version 5.4
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Fri Sep 21 07:21:35 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720587#comment-12720587 ]
Mario Fusco commented on JBRULES-3515:
--------------------------------------
I am not able to reproduce this issue as you reported it, or at least I don't have enough context to do it.
I also believe that single rule is not enough to reproduce the problem, but more probably it arises from the interaction of that rule with the others in your knowledge base.
Could you please send the complete set of rules and business object you're using or even better a self containing test case reproducing this bug?
> Getting runtime exception while I remove a validation Rule in version 5.4
> -------------------------------------------------------------------------
>
> Key: JBRULES-3515
> URL: https://issues.jboss.org/browse/JBRULES-3515
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-core
> Affects Versions: 5.4.0.Final
> Reporter: Premasis S
> Assignee: Mark Proctor
>
> I am getting the following exception while removing/disabling a Drool Validation Rule, using Drools Version 5.4.0.FINAL
> i.e when I call - knowledgeBase.removeRule("pkg.trade", "2.8.I23");
> java.util.NoSuchElementException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:980)
> at java.util.HashMap$EntryIterator.next(HashMap.java:1018)
> at java.util.HashMap$EntryIterator.next(HashMap.java:1016)
> at org.drools.reteoo.EvalConditionNode.doRemove(EvalConditionNode.java:302)
> at org.drools.common.BaseNode.remove(BaseNode.java:109)
> at org.drools.reteoo.FromNode.doRemove(FromNode.java:440)
> at org.drools.common.BaseNode.remove(BaseNode.java:109)
> at org.drools.reteoo.RightInputAdapterNode.doRemove(RightInputAdapterNode.java:285)
> at org.drools.common.BaseNode.remove(BaseNode.java:109)
> at org.drools.reteoo.BetaNode.doRemove(BetaNode.java:499)
> at org.drools.common.BaseNode.remove(BaseNode.java:109)
> at org.drools.reteoo.RuleTerminalNode.doRemove(RuleTerminalNode.java:358)
> at org.drools.common.BaseNode.remove(BaseNode.java:109)
> at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:261)
> at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:460)
> at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:1107)
> at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:1085)
> at org.drools.impl.KnowledgeBaseImpl.removeRule(KnowledgeBaseImpl.java:210)
> Here is the Rule:
> package pkg.trade;
> rule "2.8.I23"
> when
> $trade : Trade()
> $trdDeskId : Id() from mediator.getTradingDeskId($trade)
> eval(isPositiveId($trdDeskId))
> eval($trdDeskId != null && !mediator.isValidTradingDesk($trdDeskId))
> then
> raiseException(kcontext, $trade, "tradingDeskId", stringValue($trdDeskId));
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list