-
Bug
-
Resolution: Done
-
Critical
-
None
-
9.44.0.Alpha
-
None
-
-
NEW
-
NEW
-
---
-
---
I am getting the following stack trace:
Caused by: java.lang.ClassCastException: class org.drools.core.CompositeSessionConfiguration cannot be cast to class org.drools.core.SessionConfiguration (org.drools.core.CompositeSessionConfiguration and org.drools.core.SessionConfiguration are in unnamed module of loader 'app') at org.drools.kiesession.session.KieSessionsPoolImpl.lambda$createStatefulSessionPool$0(KieSessionsPoolImpl.java:65) at org.drools.core.util.ScalablePool.<init>(ScalablePool.java:41) at org.drools.kiesession.session.StatefulSessionPool.<init>(StatefulSessionPool.java:31) at org.drools.kiesession.session.KieSessionsPoolImpl.createStatefulSessionPool(KieSessionsPoolImpl.java:63) at org.drools.kiesession.session.AbstractKieSessionsPool.lambda$getPool$0(AbstractKieSessionsPool.java:54) at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) at org.drools.kiesession.session.AbstractKieSessionsPool.getPool(AbstractKieSessionsPool.java:54) at org.drools.kiesession.session.AbstractKieSessionsPool.getPool(AbstractKieSessionsPool.java:49) at org.drools.kiesession.session.KieSessionsPoolImpl.newStatelessKieSession(KieSessionsPoolImpl.java:52) at com.mycompany.myproject.engine.rules.execution.impl.drools.ReuseStatelessSessionExecutor.<init>(ReuseStatelessSessionExecutor.java:37) ... 47 more
I was wondering if KieSessionConfiguration should not be used instead, in that cast and in
public interface RuntimeComponentFactory extends KieService { // ... InternalWorkingMemory createStatefulSession(RuleBase ruleBase, Environment environment, SessionConfiguration sessionConfig, boolean fromPool);