I am getting this error while recording a web application and displaying "501 Method not implemented" java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " " at java.net.URLDecoder.decode(Unknown Source) at org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:144) at org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:182) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.addEncodedArgument(HTTPSamplerBase.java:609) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.parseArguments(HTTPSamplerBase.java:1137) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setPath(HTTPSamplerBase.java:462) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.computePath(DefaultSamplerCreator.java:319) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.computeFromHeader(DefaultSamplerCreator.java:141) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.populateSampler(DefaultSamplerCreator.java:107) at org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator.createAndPopulateSampler(AbstractSamplerCreator.java:155) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:222)java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " " at java.net.URLDecoder.decode(Unknown Source) at org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:144) at org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:182) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.addEncodedArgument(HTTPSamplerBase.java:609) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.parseArguments(HTTPSamplerBase.java:1137) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setPath(HTTPSamplerBase.java:462) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.computePath(DefaultSamplerCreator.java:319) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.computeFromHeader(DefaultSamplerCreator.java:141) at org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator.populateSampler(DefaultSamplerCreator.java:107) at org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator.createAndPopulateSampler(AbstractSamplerCreator.java:155) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:222)
Hello, Thanks for report. Can you provide the request content that is failing: - Full URL - Post body if any - Headers - Cookies and jmeter.log. Thank you
Hi Ram Yelisetty, It looks like your request content string contains escape character like '%' and your request content string might be something like this "abc% @de". However, java.net.URLDecoder.decode("String") throws exception for such escape characters. So Please make sure your request content string does not contain escape charecter(%).
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4946