zoukankan      html  css  js  c++  java
  • JMeter java.net.URISyntaxException:Illegalcharacterinquery解决方案

    java.net.URISyntaxException: Illegal character in query解决方案

     

    by:授客 QQ:1033553122

    测试环境

    apache-jmeter-3.2

     

    1. 问题描述

    如下,jmeter发送get参数,参数中携带字符 {},运行后查看请求响应结果,提示如下:


     

    java.net.URISyntaxException: Illegal character in query at index 59:http://xx.xxx.xx.xx:1301/xxxx/xxx/uploadRecords?records=[{}]

    at

    at

    at

    at

    at

    at

    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.

    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.

    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.

    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.

    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.

    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.

    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.

    at

     

     

     

    2. 解决方法

    勾选参数右侧的“编码?”,对参数进行url编码

     

     

     

  • 相关阅读:
    拉格朗日插值
    文档 所有空格变为Tab
    windows 计算器
    map 结构体
    插入图片 图片地址
    扩展中国剩余定理
    欧拉定理、欧拉函数、a/b%c
    hdu1033Defragment
    Minimum Inversion Number_线段树||树状数组
    hdu1166敌兵布阵_线段树单点更新
  • 原文地址:https://www.cnblogs.com/shouke/p/10157465.html
Copyright © 2011-2022 走看看