The environment that has been confirmed to work is as follows.
- Windows 11 Pro
- AzulJDK 21.0.6
- sbt 1.10.10 (sbt command)
The following uses the gatling-sbt-plugin-demo configuration as is. - sbt 1.10.7 (project\build.properties)
- gatling 3.13.4
- scala 2.13.6
- gatling-sbt 4.13.0
The Gatling/generateReport task provided by the gatling-sbt plugin fails to run.
Am I missing some steps that I need to take to run the Gatling/generateReport task?
The steps to check the operation are as follows.
- Clone the main branch of the gatling-sbt-pluguin-demo repository.
- Run the simulation with the following command:
sbt “Gatling/testOnly computerdatabase.ComputerDatabaseSimulation”
The HTML report will be created in the computerdatabasesimulation-20250313043936173 folder. - Delete everything except simulation.log under the computerdatabasesimulation-20250313043936173 folder.
- If I try to recreate the HTML report using the command below, it fails with the following error message:
sbt “Gatling/generateReport computerdatabasesimulation-20250313043936173”
[info] welcome to sbt 1.10.7 (Azul Systems, Inc. Java 21.0.6)
[info] loading settings for project gatling-sbt-plugin-demo-build from plugins.sbt…
[info] loading project definition from C:\Users\kudou\Desktop\Gatling3.13.4\SBTPlugin\gatling-sbt-plugin-demo\project
[info] loading settings for project gatling-sbt-plugin-demo from build.sbt…
[info] set current project to gatling-sbt-plugin-demo (in build file:/C:/Users/kudou/Desktop/Gatling3.13.4/SBTPlugin/gatling-sbt-plugin-demo/)
Parsing log file(s)…
Exception in thread “main” java.lang.IllegalAccessException: module java.base does not open java.lang to unnamed module @2e3fc542
at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:287)
at io.gatling.core.stats.writer.StringInternals.(StringInternals.java:43)
at io.gatling.charts.stats.LogFileReader$.apply(LogFileReader.scala:363)
at io.gatling.app.RunResultProcessor.initLogFileData(RunResultProcessor.scala:52)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:35)
at io.gatling.app.Gatling$.start(Gatling.scala:93)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46)
at io.gatling.app.Gatling$.main(Gatling.scala:40)
at io.gatling.app.Gatling.main(Gatling.scala)
[success] Total time: 2 s, completed 2025/03/13 13:42:41