测试积点老人 发表于 2022-1-6 10:02:58

jmeter线程报错

问题遇到的现象和发生背景启动线程后报错问题相关代码,请勿粘贴截图<span style="font-weight: normal;">java.net.URISyntaxException: Illegal character in query at index 66: http://live-web.aixuexi.com/uapi/room/entry?appId=1000008&expire=${expire}&random=1000001&requestId=${requestId}&role=12&liveId=${live}&roomId=${room}&tokenExpire=${tokenExpire}&userFlag=${userFlag}&userGroup=all&sign=${md5sign}&userName=app%C3%91%C2%A7%C3%89%C3%BA&isApp=1
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:620)
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.lang.Thread.run(Unknown Source)</span>运行结果及报错内容我的解答思路和尝试过的方法想让它得到正常数据库返回的结果我想要达到的结果

海海豚 发表于 2022-1-7 09:13:37

可能的原因是URL中带空格导致服务器端无法正确识别URL,需要去掉URL中的空格。

qqq911 发表于 2022-1-7 13:10:46

请求中内容格式错误
页: [1]
查看完整版本: jmeter线程报错