danielfain opened a new issue, #6012: URL: https://github.com/apache/incubator-kie-drools/issues/6012
8.44.0.Final Java 17 I have a JUnit test class where I have been testing my rules and while doing that, I face no problems. The issue arises when I try to do the same in my application code. I am using the AWS Lambda environment and compiling into a fat jar using the maven kie plugin and shade. In both test and application class I follow the same procedure as examples: 1. Create my RuleUnitData object 2. Add test data into data store 3. Create a RuleUnitInstance with object 4. Fire the rules The exception occurs during step 2. A ClassCastException gets thrown with the following message: class org.drools.core.common.DefaultFactHandle cannot be cast to class org.drools.ruleunits.impl.facthandles.RuleUnitInternalFactHandle Method where exception occurs: https://github.com/apache/incubator-kie-drools/blob/main/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ListDataStore.java#L134 -- 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]
