栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > .Net

JMeter调用webservice接口报错:java.net.MalformedURLException: Illegal character found in host: ‘/‘

.Net 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

JMeter调用webservice接口报错:java.net.MalformedURLException: Illegal character found in host: ‘/‘

今天使用Jmeter5.3,调用webservice接口时,一直报错:

Content-Typetext/xml
X-Gaia-Api-Key30adfd-a23-2e026

执行后报错如下:

java.net.MalformedURLException: Illegal character found in host: '/'
    at java.net.URL.(Unknown Source)
    at java.net.URL.(Unknown Source)
    at java.net.URL.(Unknown Source)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getUrl(HTTPSamplerBase.java:1103)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1281)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1270)
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:630)
    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)

 

问题原因:

host包含特殊符号导致,需要进行处理。

将Server Name和path分开写即可。server name中包含Path路径后,不识别导致。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/907217.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号