Skip to content
Advertisement

Using java.util.concurrent.TimeUnit shows GroovyBugError on JMETER

I am currently using JMETER with plugin for Selenium Web Driver Sampler. Why is this happening? any solution I can use so that I can use implicit wait, explicit wait, and fluent wait?

Here is my code

JavaScript

Advertisement

Answer

Unsupported class file major version 61

  1. Looking hereJava SE 17 = 61 (0x3D hex) so you’re using Java 17 which was released in September 2021
  2. Looking here it seems that the latest JMeter 5.4.3 is using Groovy 3.0.7 which was released in December 2020

So my expectation is that you need to downgrade your Java version to something which existed in December 2020 i.e. to Java 11 and the problem should go away. The minimum version you can run JMeter 5.4+ is Java 8.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement