Ramesh Raja wrote:
Hi All ,
I am getting the below error when executing the script in JMeter.
org.codehaus.groovy.GroovyBugError: BUG! exception in phase 'semantic
analysis' in source unit 'Script1.groovy' Unsupported class file major
version 66
JMeter 5.6.3
<https://lists.apache.org/thread/o906of55x1n8z2zm8fyj3w9k3lqf8y0c> comes
with Groovy 3.0.20
<https://github.com/apache/jmeter/blob/rel/v5.6.3/src/bom-thirdparty/build.gradle.kts#L29C50-L29C56>
which doesn't support Java 22, you need to downgrade your JDK version.
* The latest Java version you can use with Groovy 3.0.20 is Java 21
* The lowest Java version you can run JMeter 5.6.3 with is Java 8
Both workarounds should resolve your issue.
If you cannot change your JDK for any reason the remaining options are in:
* Upgrade Groovy version in JMeter Classpath
<https://jmeter.apache.org/usermanual/get-started.html#classpath>
* Create your own JMeter plugin
<https://www.blazemeter.com/blog/jmeter-plugin-development>
implementing your Groovy script logic
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org