Bug 1013197

Summary: AfterEvaluator.evaluateCachedRight throws NPE on persisted Session reload (Phreak, Stream, PseudoClock)
Product: [Retired] JBoss BRMS Platform 6 Reporter: Richard Bourner <rbourner>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.0.0CC: ddoyle, omikelad, rbourner
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:19:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Richard Bourner 2013-09-28 08:53:41 UTC
Description of problem:
Information on community issue : https://issues.jboss.org/browse/DROOLS-275

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Mario Fusco 2013-10-03 07:40:53 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/fd644d3aa

Comment 3 JBoss JIRA Server 2013-10-03 07:41:26 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-275 to Resolved

Comment 4 JBoss JIRA Server 2013-10-03 13:27:24 UTC
Tanguy Leroux <tanguy.leroux> made a comment on jira DROOLS-275

Hi,

Just to let you know, we encountered the same issue on 6.0.0.Beta2: 

java.lang.NullPointerException
	at org.drools.core.base.evaluators.BeforeEvaluatorDefinition$BeforeEvaluator.evaluateCachedLeft(BeforeEvaluatorDefinition.java:318)
	at org.drools.core.rule.constraint.EvaluatorConstraint.isAllowedCachedLeft(EvaluatorConstraint.java:67)
	at org.drools.core.common.TripleBetaConstraints.isAllowedCachedLeft(TripleBetaConstraints.java:91)
	at org.drools.core.reteoo.AccumulateNode.assertLeftTuple(AccumulateNode.java:183)
	at org.drools.core.reteoo.CompositeLeftTupleSinkAdapter.doPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:243)
	at org.drools.core.reteoo.CompositeLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:125)
	at org.drools.core.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:230)
	at org.drools.core.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:498)
	at org.drools.core.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:383)
	at org.drools.core.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:365)
	at org.drools.core.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:296)
	at org.drools.core.reteoo.EntryPointNode.assertObject(EntryPointNode.java:265)
	at org.drools.core.marshalling.impl.ProtobufInputMarshaller.assertHandleIntoOTN(ProtobufInputMarshaller.java:469)
	at org.drools.core.marshalling.impl.ProtobufInputMarshaller.readFactHandles(ProtobufInputMarshaller.java:446)
	at org.drools.core.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:249)
	at org.drools.core.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:154)
	at org.drools.core.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:114)
	at org.drools.core.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:56)

Comment 5 Tomas David 2013-12-12 09:42:56 UTC
Verified on BRMS 6.0.0.ER5.