[jboss-jira] [JBoss JIRA] (JBRULES-3463) Getting runtime exception while I remove a validation Rule in version 5.1.1

Premasis S (JIRA) jira-events at lists.jboss.org
Fri Apr 27 01:59:17 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688237#comment-12688237 ] 

Premasis S commented on JBRULES-3463:
-------------------------------------

Our project codes are compatible with 5.1.1 version only as they do not compile with 5.4 version.
Is it possible to let me know if there is any known issue equivalent to the error trace I have copied earlier?
Thanks
                
> Getting runtime exception while I remove a validation Rule in version 5.1.1
> ---------------------------------------------------------------------------
>
>                 Key: JBRULES-3463
>                 URL: https://issues.jboss.org/browse/JBRULES-3463
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: All
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Premasis S
>            Assignee: Mark Proctor
>
> I am getting the following exception while removing/disabling a Drool Validation Rule, using Drools Version 5.1.1
>  
> i.e when I call - knowledgeBase.removeRule("pkg.trade", "2.8.I23");
> java.util.NoSuchElementException
>         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:924)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:962)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:960)
>         at org.drools.reteoo.EvalConditionNode.doRemove(EvalConditionNode.java:321)
>         at org.drools.common.BaseNode.remove(BaseNode.java:109)
>         at org.drools.reteoo.FromNode.doRemove(FromNode.java:394)
>         at org.drools.common.BaseNode.remove(BaseNode.java:109)
>         at org.drools.reteoo.RightInputAdapterNode.doRemove(RightInputAdapterNode.java:258)
>         at org.drools.common.BaseNode.remove(BaseNode.java:109)
>         at org.drools.reteoo.BetaNode.doRemove(BetaNode.java:289)
>         at org.drools.common.BaseNode.remove(BaseNode.java:109)
>         at org.drools.reteoo.RuleTerminalNode.doRemove(RuleTerminalNode.java:411)
>         at org.drools.common.BaseNode.remove(BaseNode.java:109)
>         at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:237)
>         at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:432)
>         at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:831)
>         at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:809)
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list