[rules-users] fireAllRules fire an exception !

Mark Proctor mproctor at codehaus.org
Mon Jul 30 08:47:52 EDT 2007


Just means your consequence threw a NullPointerException, the expception 
should contain an nested exception with some more information.

Mark
hypnosat7 wrote:
> Hi,
> I try to execute this code :
>   		session.startProcess(ruleFlowId);
> 		session.insert(fact);
> 		session.fireAllRules();
>
> But I have a NullPointerEception :
>
> java.lang.NullPointerException
> 	at mipih.Rule_Correction_acte_0.consequence(Rule_Correction_acte_0.java:15)
> 	at
> mipih.Rule_Correction_acte_0ConsequenceInvoker.evaluate(Rule_Correction_acte_0ConsequenceInvoker.java:23)
> 	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)
> 	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)
> 	at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:430)
> 	at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)
>
> Any help pls
>   




More information about the rules-users mailing list