You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2018/12/10 13:36:56 UTC

[Bug 62997] New: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " "

https://bz.apache.org/bugzilla/show_bug.cgi?id=62997

            Bug ID: 62997
           Summary: java.lang.IllegalArgumentException: URLDecoder:
                    Illegal hex characters in escape (%) pattern - For
                    input string: " "
           Product: JMeter
           Version: 4.0
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: ramyelisetty@gmail.com
  Target Milestone: JMETER_5.1

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62997] java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " "

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62997

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|JMETER_5.1                  |---

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62997] java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " "

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62997

Ram Yelisetty <ra...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ramyelisetty@gmail.com
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62997] java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " "

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62997

--- Comment #2 from Sanjay <sa...@india.nec.com> ---
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(%).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 62997] java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " "

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62997

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.