[
https://issues.jboss.org/browse/JBRULES-3190?page=com.atlassian.jira.plug...
]
Mark Proctor resolved JBRULES-3190.
-----------------------------------
Fix Version/s: 5.3.0.CR1
Resolution: Done
JBRULES-2887 that you reference is now closed, so I assume this bug is fixed. Please
re-open with a different test case, if your issue persists.
NPE when updating fact
----------------------
Key: JBRULES-3190
URL:
https://issues.jboss.org/browse/JBRULES-3190
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.3.0.Beta1
Reporter: Tomáš Schlosser
Assignee: Mark Proctor
Fix For: 5.3.0.CR1
Take the example project from JBRULES-2887 and run it. You'll get this exception:
Exceuting
ruleorg.drools.runtime.rule.ConsequenceException: rule: MESSAGE_HELLO
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1093)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1022)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1243)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
at com.sample.DroolsTest.main(DroolsTest.java:41)
Caused by: java.lang.NullPointerException
at
org.drools.reteoo.ReteooWorkingMemory$EvaluateResultConstraints.execute(ReteooWorkingMemory.java:576)
at
org.drools.common.PropagationContextImpl.evaluateActionQueue(PropagationContextImpl.java:265)
at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:465)
at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:365)
at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:294)
at com.sample.Rule_MESSAGE_HELLO_0.defaultConsequence(Rule_MESSAGE_HELLO_0.java:8)
at
com.sample.Rule_MESSAGE_HELLO_0DefaultConsequenceInvoker.evaluate(Rule_MESSAGE_HELLO_0DefaultConsequenceInvoker.java:27)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1083)
... 6 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira