ebujinovch opened a new issue, #6938: URL: https://github.com/apache/incubator-kie/issues/6938
I'm using the drools-compiler:10.0.0 in a Java Spring Boot application on JDK 21.0.6. I'm getting the following exception when trying to create a pool of stateless KieSessions: "Trying to create a stateful KieSession from a stateless KieSessionModel". I've configured my KieContainer, KieBaseModel, and KieSessionModel programmatically starting at KieServices.newKieModuleModel(). My KieSessionModel has type == STATELESS. I'm creating the session pool as KieContainer.newKieSessionPool(int initialSize). I'm trying to create my StatelessKieSession as KieContainerSessionPool.newStatelessKieSession(String kSessionName). It looks like the fault is at KieContainerImpl.java: 633 where the code checks the kSessionModel.getType(). Please see below the photo of the debug view in IntelliJ. It looks like the comparison is meant to be "!=" instead of the current "==". The exception message also suggests that. Sorry, I cannot share the exact code.  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
