+++ This bug was initially created as a clone of Bug #811745 +++ Packages compiled by BRM (Guvnor) ignore Event types, so if a rule uses sliding window a NPE is throwed: h java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56) at org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:80) at org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:65) at org.drools.common.NamedEntryPoint.createHandle(NamedEntryPoint.java:705) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:282) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:905) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864) at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:255) at john.DroolsError.runRules(DroolsError.java:48) at john.DroolsError.main(DroolsError.java:40) Packages compiled by BRM (Guvnor) ignore Event types, so if a rule uses sliding window a NPE is throwed: java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56) at org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:80) at org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:65) at org.drools.common.NamedEntryPoint.createHandle(NamedEntryPoint.java:705) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:282) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:905) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864) at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:255) at john.DroolsError.runRules(DroolsError.java:48) at john.DroolsError.main(DroolsError.java:40) That does not happen if used KnowledgeBuilder and a regular drl file instead of KnowledgeAgent + package binaries from Guvnor. It can be checked by test scenarios as well. Attached here a repository that reproduces this issue, there is a test scenario in the package "cep" which simulate this situation. --- Additional comment from alazarot on 2012-04-11 16:53:13 EDT --- Created attachment 576889 [details] repository export containing a test scenario reproducing the issue
This is a clone from Bug #811745 to cherry pick the fix to BRMS 5.3 as well, since it is a block to put BRM(Guvnor)and CEP rules to work together.
GSS considers this an important addition to BRMS 5.3, as it is being fixed in 5.2 and we don't want a regression. Thanks, Rick
Assigned to etirelli who is working on the referenced https://bugzilla.redhat.com/show_bug.cgi?id=811745
Fixed the core engine part. Michael is now making sure the guvnor part is ok. Please read comments on the related ticket for details.
Guvnor fixes made to branches 5.2.x, 5.3.x, 5.4.x and master.
The fixed for this issue should be included in ER7. Please do verification on it.
The fix is in and the test doesn't fail. VERIFIED.