[
https://issues.jboss.org/browse/DROOLS-2172?page=com.atlassian.jira.plugi...
]
Mario Fusco commented on DROOLS-2172:
-------------------------------------
If a segment split happens during an incremental compilation all the paths associated to
the old segment are also associated to the new one regardless if the new segment actually
belongs to that path or not. This may lead to spurious path linking and then to a NPE when
the whole path is evaluated like the following
{code}
java.lang.NullPointerException
at
org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:114)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
at
org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
at
org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
{code}
Segment split can cause the resulting segments to be associated to
the wrong path
---------------------------------------------------------------------------------
Key: DROOLS-2172
URL:
https://issues.jboss.org/browse/DROOLS-2172
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)