Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
Hey Alexander, Would this be related to this? https://issues.jboss.org/browse/DROOLS-243 If it is this one, you can do something like this as a workaround before constructing the KBase: Operator op = BeforeEvaluatorDefinition.BEFORE; Operator op = AfterEvaluatorDefinition.AFTER; This will

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Alexander Wolf
Hey Demian, thank you! This might actually be related. But how do I get the reference to these Operators to (re)set them? This is my unmarshalling code (pretty simple and basic..): ByteArrayInputStream bais = new ByteArrayInputStream(serializedKnowledgeBase); ObjectInputStream ois = new

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
Yes.. but you can include these two lines before this, to check. Operator op = BeforeEvaluatorDefinition.BEFORE; Operator op = AfterEvaluatorDefinition.AFTER; The problem in that, for example, for the before,