cschneidinger opened a new issue, #6402:
URL: https://github.com/apache/jmeter/issues/6402
### 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]