gpt4 book ai didi

java - Apache JMeter 异常 NoSuchMethodError

转载 作者:行者123 更新时间:2023-12-05 03:44:14 24 4
gpt4 key购买 nike

我正在尝试对使用 JMeter 记录的一些事务进行负载测试,但是在执行时显示以下错误

Exception in thread "HomePage_thread 10-2"java.lang.NoSuchMethodError: 'voidorg.apache.commons.io.IOUtils.closeQuietly(java.io.Closeable,java.util.function.Consumer)' atorg.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1982)atorg.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:476)atorg.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:673)atorg.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)atorg.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1296)atorg.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1285)atorg.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638)atorg.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)atorg.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)

知道可能是什么问题吗?

最佳答案

您的设置至少需要 commons-io-2.7.jar可用

public static void closeQuietly(Closeable closeable,Consumer consumer)

Since: 2.7

如果存在这个jar,删除旧版本

关于java - Apache JMeter 异常 NoSuchMethodError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66583746/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com