Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy jar dependencies not compatible with jdk-23 - Unsupported class file major version 67 #6402

Open
cschneidinger opened this issue Jan 8, 2025 · 0 comments

Comments

@cschneidinger
Copy link

cschneidinger commented Jan 8, 2025

Expected behavior

I expect that JSR223 groovy scripts will not throw exceptions.

Actual behavior

I get the following error message when I execute a jmeter script with a JSR223 groovy script when I use a jdk version 23:

org.codehaus.groovy.GroovyBugError: BUG! exception in phase 'semantic analysis' in source unit 'Script135.groovy' Unsupported class file major version 67
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:906) ~[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:628) ~[groovy-3.0.20.jar:3.0.20]
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389) ~[groovy-3.0.20.jar:3.0.20]
at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332) ~[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163) ~[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154) ~[groovy-3.0.20.jar:3.0.20]

If I replace the groovy--3.0.20.jar files with groovy--.3.0.23.jar, then the script works fine with jdk-23.

Steps to reproduce the problem

Create a simple script with a jsr223 groovy script and the above error will be thrown.

JMeter Version

5.6.3

Java Version

Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 23.0.1+11.1

OS Version

microsoft windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant