Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " " #4946

Open
asfimport opened this issue Dec 10, 2018 · 2 comments

Comments

@asfimport
Copy link
Collaborator

Ram Yelisetty (Bug 62997):
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)

Severity: normal
OS: All

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
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

@asfimport
Copy link
Collaborator Author

Sanjay (migrated from Bugzilla):
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(%).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant