[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2796) NullPointerException in FromNode.destroyCreatedHandles

Solomon Gibbs (JIRA) jira-events at lists.jboss.org
Thu Mar 17 10:05:50 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588620#comment-12588620 ] 

Solomon Gibbs commented on JBRULES-2796:
----------------------------------------

I am also repeatably getting this exception with 5.1.1. It appears to go away in 5.2.0.M1 for me too. I have not been able to get my rules to load on 5.0.1 to test that.

> NullPointerException in FromNode.destroyCreatedHandles
> ------------------------------------------------------
>
>                 Key: JBRULES-2796
>                 URL: https://issues.jboss.org/browse/JBRULES-2796
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>            Reporter: Tommy Odom
>            Assignee: Mark Proctor
>
> I received this NullPointerException after upgrading to drools 5.1.1.  The NullPointerException is being thrown when the rule executes "update($build);" where $build is set in the LHS from a Build in working memory.  I'm not sure if the bug is that matches may be null and a null check needs to be added or if something else is going on causing the tuple to not be found.
> Caused by: java.lang.NullPointerException
> 	at org.drools.reteoo.FromNode.destroyCreatedHandles(FromNode.java:336)
> 	at org.drools.reteoo.FromNode.retractLeftTuple(FromNode.java:326)
> 	at org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateRetractLeftTuple(CompositeLeftTupleSinkAdapter.java:238)
> 	at org.drools.reteoo.CompositeLeftTupleSinkAdapter.propagateRetractRightTuple(CompositeLeftTupleSinkAdapter.java:155)
> 	at org.drools.reteoo.JoinNode.retractRightTuple(JoinNode.java:151)
> 	at org.drools.reteoo.ModifyPreviousTuples.retractTuples(ModifyPreviousTuples.java:126)
> 	at org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:176)
> 	at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1442)
> 	at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1349)
> 	at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:183)
> 	at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:196)
> 	at buildSchedulerV2.Rule_Combine_Builds_0.defaultConsequence(Rule_Combine_Builds_0.java:36)
> 	at buildSchedulerV2.Rule_Combine_Builds_0DefaultConsequenceInvoker.evaluate(Rule_Combine_Builds_0DefaultConsequenceInvoker.java:49)
> 	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:917)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list