I have created a JIRA [1] and attached a test case

https://jira.jboss.org/jira/browse/JBRULES-2389

Tx

indika

2009/12/15 Edson Tirelli <ed.tirelli@gmail.com>

   Indika,

   I will need to reproduce the problem in order to investigate and fix it. If you can create an isolated test case and open a jira for it, it will be very helpful.

   Thanks,
      Edson

2009/12/14 indika kumara <indika.kuma@gmail.com>
Hi all

I  have encountered an issue when Droools fusion is run in the stream mode with 'multithreadEvaluation' and  maxThreads=5.   The issue is as follows.

org.drools.
RuntimeDroolsException: Unexpected exception executing action org.drools.reteoo.PropagationQueuingNode$PropagateAction@8c1400
    at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1549)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:160)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:121)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:80)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:28)
   .........
Caused by: org.drools.RuntimeDroolsException: java.lang.NullPointerException
    at org.drools.rule.Accumulate.accumulate(Accumulate.java:172)
    at org.drools.reteoo.AccumulateNode.modifyTuple(AccumulateNode.java:424)
    at org.drools.reteoo.AccumulateNode.assertObject(AccumulateNode.java:284)
    at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:42)
    at org.drools.reteoo.PropagationQueuingNode$AssertAction.execute(PropagationQueuingNode.java:326)
    at org.drools.reteoo.PropagationQueuingNode.propagateActions(PropagationQueuingNode.java:221)
    at org.drools.reteoo.PropagationQueuingNode$PropagateAction.execute(PropagationQueuingNode.java:394)
    at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1547)
    ... 18 more
Caused by: java.lang.NullPointerException
    at org.drools.base.accumulators.MVELAccumulatorFunctionExecutor.accumulate(MVELAccumulatorFunctionExecutor.java:129)
    at org.drools.rule.Accumulate.accumulate(Accumulate.java:164)
    ... 25 more


Then NPE is due to the argument  'context' of the accumulate is null.

When I  run the fusion in the same scenario without  'multithreadEvaluation' , it works fine.  

Could someone help me to identify the actual issue?

Thanks Lots

Indika

Please Note : I did not inject events concurrently.  But , I need to do that too

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users