gpt4 book ai didi

jmeter 3.3 CSV 示例抛出 stackoverflow 异常

转载 作者:行者123 更新时间:2023-12-04 02:02:16 24 4
gpt4 key购买 nike

我下载 JMeter 3.3 并在示例文件夹中打开示例 CSVSample.jmx 并执行,我得到以下 Stackoverflow 异常测试计划: 1

017-09-24 16:38:09,452 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.StackOverflowError: null
at jdk.internal.dynalink.support.AbstractCallSiteDescriptor.hashCode(AbstractCallSiteDescriptor.java:142) ~[nashorn.jar:?]
at java.util.concurrent.ConcurrentHashMap.putVal(Unknown Source) ~[?:1.8.0_144]
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source) ~[?:1.8.0_144]
at jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.get(NashornCallSiteDescriptor.java:167) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor.get(NashornCallSiteDescriptor.java:158) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.LinkerCallSite.newLinkerCallSite(LinkerCallSite.java:114) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.bootstrap(Bootstrap.java:208) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.createDynamicInvoker(Bootstrap.java:371) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.Bootstrap.createDynamicInvoker(Bootstrap.java:345) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.InvokeByName.<init>(InvokeByName.java:86) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.linker.InvokeByName.<init>(InvokeByName.java:73) ~[nashorn.jar:?]
at jdk.nashorn.internal.objects.Global.<init>(Global.java:96) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.newGlobal(Context.java:1111) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine$2.run(NashornScriptEngine.java:350) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine$2.run(NashornScriptEngine.java:346) ~[nashorn.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at jdk.nashorn.api.scripting.NashornScriptEngine.createNashornGlobal(NashornScriptEngine.java:346) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.createGlobalMirror(NashornScriptEngine.java:340) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.createBindings(NashornScriptEngine.java:170) ~[nashorn.jar:?]
at org.apache.jmeter.control.IfController$NashornJsEngine.evaluate(IfController.java:123) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:185) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.IfController.next(IfController.java:239) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:219) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.nextIsNull(WhileController.java:82) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:168) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.control.WhileController.next(WhileController.java:106) ~[ApacheJMeter_core.jar:3.3 r1808647]
at

最佳答案

这是因为While Controller条件使用已删除的函数 __jexl:

${__jexl("${ACTION}" != "")}

应该是:

${__jexl3("${ACTION}" != "")}

今天在 jmeter 代码中修复:

关于jmeter 3.3 CSV 示例抛出 stackoverflow 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46390688/

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