<br>Hi I am getting the following error while inserting into the entrypoint.<br><br>rule &quot;Check if EligibleAlert is an Signature Event&quot;<br>agenda-group &quot;enrichment&quot;<br>auto-focus true<br><br>no-loop true<br>
when<br>    $list : EventSignatureList();<br>    $p : EligibleAlert($a : alert, $a.eventSignatureProcessingStatus!=&quot;TRUE&quot; );<br>    eval((ifMatchesSyslog($list.getAllSyslogMnemonics(), $a)!=null)  )<br><br>then<br>
        try{<br>                WorkingMemoryEntryPoint eventsignaturestream = drools.getEntryPoint(&quot;EVENT SIGNATURE STREAM&quot;) ;<br>                eventsignaturestream.insert($p);<br>                } catch(Exception e)<br>
        {<br>            log.error(&quot;[EventSignatureRules] - exception in Check if EligibleAlert is an Signature Event alert[ids=&quot; + $p.getAlert().getId() + &quot;][error:&quot; + e.toString() + &quot;]&quot;);<br>
        }<br>end<br><br>And I am creating the session this way:<br><b><br>        knowledgeBaseConfig = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();<br>        knowledgeBaseConfig.setOption( EventProcessingOption.STREAM );<br>
        kBase = KnowledgeBaseFactory.newKnowledgeBase( knowledgeBaseConfig );<br>        <br><br>        kBase.addKnowledgePackages(knowledgeBuilder.getKnowledgePackages());<br>        <br>        <br>        KnowledgeSessionConfiguration knowledgeSessionConfig =  KnowledgeBaseFactory.newKnowledgeSessionConfiguration();<br>
        ((SessionConfiguration) knowledgeSessionConfig).setClockType( ClockType.REALTIME_CLOCK );<br>          kBase.newStatefulKnowledgeSession(knowledgeSessionConfig,null);</b><br><br><br>I get the Following error when my rule fires:<br>
<br>2009-11-09 15:02:00,675 FATAL pool-2-thread-1 LogStream - java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluateCachedRight(AfterEvaluatorDefinition.java:321)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.rule.VariableRestriction.isAllowedCachedRight(VariableRestriction.java:116)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.rule.VariableConstraint.isAllowedCachedRight(VariableConstraint.java:112)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.DefaultBetaConstraints.isAllowedCachedRight(DefaultBetaConstraints.java:200)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:172)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:42)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.reteoo.PropagationQueuingNode$AssertAction.execute(PropagationQueuingNode.java:326)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.reteoo.PropagationQueuingNode.propagateActions(PropagationQueuingNode.java:221)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.reteoo.PropagationQueuingNode$PropagateAction.execute(PropagationQueuingNode.java:394)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1486)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:158)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:122)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:80)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:28)<br>2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at pnoc.alertProcessor.Rule_Check_if_EligibleAlert_is_an_Signature_Event_0.consequence(Rule_Check_if_EligibleAlert_is_an_Signature_Event_0.java:16)<br>
2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream -       at pnoc.alertProcessor.Rule_Check_if_EligibleAlert_is_an_Signature_Event_0ConsequenceInvoker.evaluate(Rule_Check_if_EligibleAlert_is_an_Signature_Event_0ConsequenceInvoker.java:24)<br>
<br>Pls help!<br><br><br>Regds<br>Chetan<br>