[
https://issues.jboss.org/browse/JBRULES-3107?page=com.atlassian.jira.plug...
]
Geoffrey De Smet commented on JBRULES-3107:
-------------------------------------------
Verified with 5.4.0.CR1:
{code}
java.lang.ClassCastException: org.drools.audit.WorkingMemoryFileLogger cannot be cast to
org.drools.event.rule.AgendaEventListener
at
org.drools.impl.StatefulKnowledgeSessionImpl.getAgendaEventListeners(StatefulKnowledgeSessionImpl.java:186)
at drools.sandbox.Testcase1.test(Testcase1.java:23)
{code}
java.lang.ClassCastException:
org.drools.audit.WorkingMemoryFileLogger cannot be cast to
org.drools.event.rule.AgendaEventListener
----------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-3107
URL:
https://issues.jboss.org/browse/JBRULES-3107
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.2.0.Final
Reporter: Vinod Kiran Paidimarry
Assignee: Mark Proctor
Attachments: testcase.zip
java.lang.ClassCastException: org.drools.audit.WorkingMemoryFileLogger cannot be cast to
org.drools.event.rule.AgendaEventListener
1. KnowledgeBase kbase = readFromAgent();
2. StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
3. KnowledgeRuntimeLogger logger =
KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");
4. ksession.getAgendaEventListeners().size();
5. ksession.fireAllRules();
6. ksession.dispose();
7. logger.close();
Line 3 causes an class cast exception on line 4.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira