Re: Issue with JMeter
Dmitri T <[email protected]> Wed, 27 Mar 2024 12:14:07 +0100
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <PH7PR12MB7139A0BE36C9C167E0DF1CA2C0342@PH7PR12MB7139.namprd12.prod.outlook.com> |
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