Hello Gatling Community,
I recently upgraded both Gatling to version 3.12.0 and Java to version 22 in my project, but I’m encountering a recurring issue, which seems to be related to the compatibility between these versions.
Issue Description:
After upgrading to Java 22 and Gatling 3.12.0, the build fails with the following error during execution:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
It appears that there is a certificate validation issue (PKIX path building failed), but the same setup works fine when I roll back to Java 21. I suspect that this issue may stem from Java 22 being experimental or certain libraries not being fully compatible with this version of Java yet.
What I Have Tried:
-
Reverted to Java 21 with Gatling 3.12.0, and the error no longer occurs.
-
Checked the JDK trust store to ensure there are no missing certificates.
-
Added SSL debugging, but the issue persists when using Java 22.
-
Temporarily disabled SSL validation (not ideal), which bypasses the error but isn’t a long-term solution.
Questions:
• Is Gatling 3.12.0 officially compatible with Java 22, or are there any known limitations or upcoming updates to support this version?
• Has anyone successfully run Gatling with Java 22, and if so, are there any workarounds or configurations that need to be applied?
Any insights or suggestions would be greatly appreciated! I am eager to understand whether this is purely a compatibility issue or if there are specific adjustments I can make in my setup.
Thanks in advance for your support!
System Details:
• Gatling Version: 3.12.0
• Java Version: 22
• OS: macOS