- We run performance test infrequently because we rarely make serious updates to our legacy app
- A line of code that has been unchanged for over a year is now causing a failure in Blazemeter
- Not only has the line not changed, but the entire script has not been touched in over 9 months and Perf testing has been run dozens of times in Blazemeter, especially in the fall of 2023.
- Same script runs in Jmeter but no longer runs in Blazemeter.
- The Line: String json = new groovy.json.JsonBuilder(map).toString()
- The error: Script1.groovy: 140: unable to resolve class groovy.json.JsonBuilder
- We tried adding "import groovy.json.JsonBuilder" to the script but it too caused the same error. Script Language displayed in JMeter: Groovy 3.0.17/Groovy Scripting Engine 2.0
Blazemeter log Extract | Jsr223-Setup JWT | FAIL | 0.00% | 0.677 | javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: | | | | | | Script1.groovy: 140: unable to resolve class groovy.json.JsonBuilder | | | | | | @ line 140, column 23. | | | | | | String json = new groovy.json.JsonBuilder(map).toString() | | | | | | ^ | | | | | | | | | | | | 1 error
I think queries like this should go to BlazeMeter support
So far I can only state that I cannot reproduce the error using:
Simple test with single JSR223 Sampler with the following code:
JMeter 5.5 and Java 8:
Everything is good:
Here is the test plan just in case:
Here is a link to report just in case: https://a.blazemeter.com/app/?public-token=jyKrcAxFd2CgIP0oSICvvAddNoaL5LpabGrFv8RDZOX9gzX3YM#/accounts/40956/workspaces/32841/projects/75310/masters/71695094/summary
but you have to be quick, I don't think it will live forever.