You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tkobayas (via GitHub)" <gi...@apache.org> on 2026/06/25 06:25:55 UTC

[I] CI build macos java17 failure in MavenDeployTest [incubator-kie-drools]

tkobayas opened a new issue, #6775:
URL: https://github.com/apache/incubator-kie-drools/issues/6775

   https://productionresultssa9.blob.core.windows.net/actions-results/8a3461e3-1265-43f4-aad3-c52f14d0d2b4/workflow-job-run-1d0654ae-da71-5cbd-8c6f-84d555ad2285/logs/job/job-logs.txt?rsct=text%2Fplain&se=2026-06-25T06%3A33%3A21Z&sig=KMRzEeAikI0xFtzXjH3CEaLs7TFcRJayTzAFl38aHBc%3D&ske=2026-06-25T09%3A37%3A17Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2026-06-25T05%3A37%3A17Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2026-06-25T06%3A23%3A16Z&sv=2025-11-05
   
   ```
   2026-06-25T05:45:31.6244240Z [INFO] Running org.kie.scanner.embedder.MavenDeployTest
   2026-06-25T05:45:31.7865060Z 05:45:31.623 [main] WARN  o.k.m.i.embedder.MavenSettings.initSettings:107 - Environment variable M2_HOME is not set
   2026-06-25T05:45:32.0493500Z 05:45:32.046 [main] WARN  o.k.m.i.embedder.MavenSettings.initSettings:107 - Environment variable M2_HOME is not set
   2026-06-25T05:45:32.1892370Z 05:45:32.049 [main] WARN  o.k.m.i.embedder.MavenSettings.initSettings:107 - Environment variable M2_HOME is not set
   2026-06-25T05:45:32.3766650Z 05:45:32.375 [main] WARN  o.k.m.i.embedder.MavenSettings.initSettings:107 - Environment variable M2_HOME is not set
   2026-06-25T05:45:32.3877800Z [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.755 s <<< FAILURE! -- in org.kie.scanner.embedder.MavenDeployTest
   2026-06-25T05:45:32.3890250Z [ERROR] org.kie.scanner.embedder.MavenDeployTest.testKScannerWithDeployUsingDistributionManagement -- Time elapsed: 0.425 s <<< ERROR!
   2026-06-25T05:45:32.3891900Z java.lang.UnsupportedClassVersionError: org/kie/test/Rule_rule3982521167 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
   2026-06-25T05:45:32.3892970Z 	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
   2026-06-25T05:45:32.3893450Z 	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
   2026-06-25T05:45:32.3894010Z 	at org.drools.wiring.dynamic.PackageClassLoader.writeClass(PackageClassLoader.java:140)
   2026-06-25T05:45:32.3894660Z 	at org.drools.wiring.dynamic.PackageClassLoader.internalDefineClass(PackageClassLoader.java:110)
   2026-06-25T05:45:32.3895470Z 	at org.drools.wiring.dynamic.PackageClassLoader.fastFindClass(PackageClassLoader.java:81)
   2026-06-25T05:45:32.3896090Z 	at org.drools.wiring.dynamic.PackageClassLoader.loadClass(PackageClassLoader.java:58)
   2026-06-25T05:45:32.3896620Z 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
   2026-06-25T05:45:32.3897170Z 	at org.kie.test.Rule_rule3982521167DefaultConsequenceInvokerGenerated.evaluate(Unknown Source)
   2026-06-25T05:45:32.3897770Z 	at org.kie.test.Rule_rule3982521167DefaultConsequenceInvoker.evaluate(Unknown Source)
   2026-06-25T05:45:32.3898350Z 	at org.drools.core.phreak.RuleExecutor.fireActivationEvent(RuleExecutor.java:439)
   2026-06-25T05:45:32.3898900Z 	at org.drools.core.phreak.RuleExecutor.fireActivation(RuleExecutor.java:417)
   2026-06-25T05:45:32.3899410Z 	at org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:150)
   2026-06-25T05:45:32.3899940Z 	at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:91)
   2026-06-25T05:45:32.3900600Z 	at org.drools.core.concurrent.AbstractGroupEvaluator.evaluateAndFire(AbstractGroupEvaluator.java:53)
   2026-06-25T05:45:32.3901230Z 	at org.drools.kiesession.agenda.DefaultAgenda.fireLoop(DefaultAgenda.java:616)
   2026-06-25T05:45:32.3901830Z 	at org.drools.kiesession.agenda.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:569)
   2026-06-25T05:45:32.3902440Z 	at org.drools.kiesession.agenda.DefaultAgenda.fireAllRules(DefaultAgenda.java:561)
   2026-06-25T05:45:32.3903170Z 	at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1110)
   2026-06-25T05:45:32.3904020Z 	at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1101)
   2026-06-25T05:45:32.3904830Z 	at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1085)
   2026-06-25T05:45:32.3905510Z 	at org.kie.scanner.AbstractKieCiTest.checkKSession(AbstractKieCiTest.java:332)
   2026-06-25T05:45:32.3906050Z 	at org.kie.scanner.AbstractKieCiTest.checkKSession(AbstractKieCiTest.java:326)
   2026-06-25T05:45:32.3906760Z 	at org.kie.scanner.embedder.MavenDeployTest.testKScannerWithDeployUsingDistributionManagement(MavenDeployTest.java:172)
   2026-06-25T05:45:32.3907290Z 
   ```
   Not sure if it's intermittent. I'll test. 
   
   Possible cause:
   
   The matrix is java: [17, 21] on macos-latest. The setup-java action sets the right JAVA_HOME, but the kie-scanner test internally compiles a kjar using the ECJ compiler or an in-process Maven invocation. If  that inner compilation picks up a different JDK (e.g. the runner's default Java 21 via PATH rather than the JAVA_HOME set by setup-java), the resulting class files would be version 65 (Java 21) while the test  JVM is 17.
   
     The M2_HOME is not set warnings confirm that Maven's environment isn't fully configured for the embedded Maven used by kie-scanner. The macOS runner likely has Java 21 pre-installed as the system default, and  the embedded Maven fork inherits that instead of the setup-java JDK 17.
   


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] CI build macos java17 failure in MavenDeployTest [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #6775: CI build macos java17 failure in MavenDeployTest
URL: https://github.com/apache/incubator-kie-drools/issues/6775


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] CI build macos java17 failure in MavenDeployTest [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #6775:
URL: https://github.com/apache/incubator-kie-drools/issues/6775#issuecomment-4831083116

   It doesn't constantly reproduce. Hard to investigate. Suspending for now.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org