JMeter运行报错
java.net.URISyntaxException: Malformed IPv6 address at index 8: http://[localhost:8082]/tmall/login/code
at java.base/java.net.URI$Parser.fail(URI.java:2974)
at java.base/java.net.URI$Parser.parseIPv6Reference(URI.java:3591)
at java.base/java.net.URI$Parser.parseServer(URI.java:3341)
at java.base/java.net.URI$Parser.parseAuthority(URI.java:3277)
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3219)
at java.base/java.net.URI$Parser.parse(URI.java:3175)
at java.base/java.net.URI.<init>(URI.java:623)
at java.base/java.net.URL.toURI(URL.java:1056)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:625)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1300)
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
at java.base/java.lang.Thread.run(Thread.java:833)
HTTP默认值参数填写如下:
响应数据截图
问题原因及对应修改
HTTP请求默认值中:服务器名或IP从:localhost:8082修改为localhost
端口号从80修改为8082
修改成功后再次发送请求:
修改完成后及请求成功了文章来源:https://www.toymoban.com/news/detail-843925.html
文章来源地址https://www.toymoban.com/news/detail-843925.html
到了这里,关于java.net.URISyntaxException: Malformed IPv6 address at index 8: http://[localhost:8082]/tmall/login/的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!