[jboss-jira] [JBoss JIRA] (DROOLS-3337) ClassCastException while using SessionPseudoClock
Bishnu Shankar Pandey (Jira)
issues at jboss.org
Thu Nov 22 11:55:00 EST 2018
[ https://issues.jboss.org/browse/DROOLS-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665311#comment-13665311 ]
Bishnu Shankar Pandey commented on DROOLS-3337:
-----------------------------------------------
If i am using KiePersistence then that is the only way to create and load the KieSession. If i use the normal syntax then how will i be able to persist kiesession???
> ClassCastException while using SessionPseudoClock
> -------------------------------------------------
>
> Key: DROOLS-3337
> URL: https://issues.jboss.org/browse/DROOLS-3337
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.1.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Priority: Major
> Attachments: RuleEngineTest (2).zip
>
>
> I am using 6.1.0.Final version of Drool. I am getting
> {code:java}
> java.lang.ClassCastException: org.drools.core.time.impl.JDKTimerService cannot be cast to org.drools.core.time.SessionPseudoClock
> {code}
> exception when I am trying to get session clock from the KieSession.
> I am using Persistence and getting the KieSession using this
> {code:java}
> val kieSession = kieServices.getStoreServices.newKieSession(kiebase,null,environment);
> {code}
> My kmodule.xml is:
> {code:java}
> <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
> <kbase name="rules" packages="rules" eventProcessingMode="stream">
> <ksession name="ksession-rules" clockType="pseudo"/>
> </kbase>
> </kmodule>
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list