porcelli opened a new issue, #2100: URL: https://github.com/apache/incubator-kie-issues/issues/2100
**Description:** When porting a project from Drools 8 to Drools 10, a `ClassNotFoundException` occurs if a `RuleUnitData` class contains **non-`DataSource` fields referencing application-defined types**. This worked fine in Drools 8.44 but fails in Drools 10.x. The issue specifically happens when the field has **getter/setter methods** — if the field has no accessors, the build succeeds. **Steps to Reproduce:** 1. Create a project based on `drools-quarkus-quickstart-test` from `incubator-kie-drools`. 2. Add a new type `OtherBean` in the same module. 3. Add a field of type `OtherBean` to `HomeRuleUnitData`, along with a standard getter and setter. 4. Build the project using Drools 10.x. **Expected Behavior:** The project should build successfully, as it does in Drools 8.44. **Actual Behavior:** Build fails with the following error: ``` [ERROR] Caused by: java.lang.ClassNotFoundException: org.drools.quarkus.quickstart.test.OtherBean [ERROR] at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) [ERROR] at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225) [ERROR] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210) [ERROR] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205) [ERROR] at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:565) [ERROR] at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:513) [ERROR] at org.drools.ruleunits.impl.SimpleRuleUnitVariable.<init>(SimpleRuleUnitVariable.java:55) ``` **Notes:** * The only difference from the original quickstart project is the addition of the `OtherBean` type and the getter/setter in `HomeRuleUnitData`. * This appears to be a regression introduced in Drools 10. **Environment:** * Drools: 10.1.0 * Quarkus: 3.15.3 * Works fine in: Drools 8.44 -- 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]
