[rules-users] Does Knowledgebase partitioning work at all?

Michael Anstis michael.anstis at gmail.com
Wed Oct 20 07:18:13 EDT 2010


I'm probably not the one to answer your question; but could you please
explain a little more how you are using drools?

I believe partitioning is related to drools-fusion's capabilities rather
than a generic multi-threading facility.

I also believe it needs to be used in conjunction with entry-points.

A little more information would benefit others' replies.

Thanks,

Mike

On 20 October 2010 11:53, Tim 4076 <tm4076 at gmail.com> wrote:

> I am attempting to use the multi thread knowledgebase partitioning
> feature on drools 5.1, but am not having much luck. Using a stateless
> session with MultithreadEvaluationOption.YES and
> MaxThreadsOption.get(2) always gives a NullPointer exception:
>
> java.lang.NullPointerException
>        at
> org.drools.reteoo.PartitionManager.waitForPendingTasks(PartitionManager.java:105)
>        at
> org.drools.common.AbstractWorkingMemory.prepareToFireActivation(AbstractWorkingMemory.java:2090)
>        at
> org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:845)
>        at
> org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1071)
>        at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:785)
>        at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:751)
>        at
> org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
>        at
> org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:302)
>        at com.sample.DroolsTest.main(DroolsTest.java:70)
>
> This looks similar to JIRA 2125, which was raised over a year ago.
> Does this mean that this feature is completely non-functional?
>
>
> Thanks,
> Tim
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101020/f0850a46/attachment.html 


More information about the rules-users mailing list