[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1588) collect fails when using treeset
pchar (JIRA)
jira-events at lists.jboss.org
Sun Apr 27 10:56:19 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1588?page=all ]
pchar updated JBRULES-1588:
---------------------------
Attachment: treemap.zip
the test case in attachment
> collect fails when using treeset
> --------------------------------
>
> Key: JBRULES-1588
> URL: http://jira.jboss.com/jira/browse/JBRULES-1588
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.6
> Reporter: pchar
> Assigned To: Mark Proctor
> Attachments: treemap.zip
>
>
> Hi All,
> i've a simple rules that retract objects form the WM
> rule "Retract From TreeSet"
> when
> $tree: TreeSet() from collect (Message() )
> then
> System.out.println($tree.first());
> retract($tree.first());
> end
> after the firts run the following exception is thrown
> org.drools.FactException: Retract error: handle not found for object: [Hello World]. Is it in the working memory?
> [Hello World]
> at org.drools.base.DefaultKnowledgeHelper.retract(DefaultKnowledgeHelper.java:120)
> at com.sample.Rule_Retract_From_TreeSet_0.consequence(Rule_Retract_From_TreeSet_0.java:9)
> at com.sample.Rule_Retract_From_TreeSet_0ConsequenceInvoker.evaluate(Rule_Retract_From_TreeSet_0ConsequenceInvoker.java:22)
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)
> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:471)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:433)
> at com.sample.DroolsTest.main(DroolsTest.java:36)
> org.drools.spi.ConsequenceException: org.drools.FactException: Retract error: handle not found for object: [Hello World]. Is it in the working memory?
> at org.drools.base.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:14)
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:554)
> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:471)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:433)
> at com.sample.DroolsTest.main(DroolsTest.java:36)
> Caused by: org.drools.FactException: Retract error: handle not found for object: [Hello World]. Is it in the working memory?
> at org.drools.base.DefaultKnowledgeHelper.retract(DefaultKnowledgeHelper.java:120)
> at com.sample.Rule_Retract_From_TreeSet_0.consequence(Rule_Retract_From_TreeSet_0.java:9)
> at com.sample.Rule_Retract_From_TreeSet_0ConsequenceInvoker.evaluate(Rule_Retract_From_TreeSet_0ConsequenceInvoker.java:22)
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)
> ... 4 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list