0
votes

I'm trying to run load testing on some transactions recorded with JMeter however when executing it shows the error below

Exception in thread "HomePage_thread 10-2" java.lang.NoSuchMethodError: 'void org.apache.commons.io.IOUtils.closeQuietly(java.io.Closeable, java.util.function.Consumer)' at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1982) at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:476) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:673) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1296) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1285) at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638) at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558) at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) at java.base/java.lang.Thread.run(Thread.java:832)

Any idea what can be the problem?

2
Are you running distributed environment? what's jmeter version and its plugins? what's your commons-io jar version ? - user7294900
I'm using IntelliJ and deeplearning4j, specifically rl4j... jmeter version is 5.4.1, and maven plugins and dependencies - eiu20001
check for commons-io jar(s) - user7294900

2 Answers

0
votes

Classic Jar Hell

  1. Deeplearning4j depends on commons-io 2.5
  2. JMeter HTTP compone depends on commons-io 2.8

You need to amend your project classpath in order to include only commons-io 2.8 in order to get JMeter working or downgrade to JMeter 3.1 which relies on commons-io 2.5

0
votes

Your settings requires at least commons-io-2.7.jar to be available

public static void closeQuietly(Closeable closeable, Consumer consumer)

Since: 2.7

Delete old versions of this jar if exists