| || |
Issue occuring during the proxy recording of jmeter
I am a newbie to jmeter, i just started recording the scripts, when i try to record it through proxy server which is available in jmeter, I would see a message on the view of site saying -
java.net.URISyntaxException: Illegal character in query at index 121: https://xxx.xxx.com/xyz/RELEASE99/"
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Imp l.sample(HTTPHC4Impl.java:234)
at org.apache.jmeter.protocol.http.sampler.HTTPSample rProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSample rBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Pr oxy.java:211)
It would be thankful if some one could help me out with a possible solutions on it.
Look into character number 121 in your URL, as per exception it might be something non-ASCII which incorrectly got encoded during recording or introduced non-intentional manually somehow.
I suggest doing the following:
1. Check your query details for "problematic" URL. The best place to keep them is "Parameters" stanza of HTTP Request.
2. Check each parameter. If it's represented as non-ASCII character make sure that "Encoded" box is checked.
3. Check "Content encoding" setting of HTTP Request.If it's not explicitly set I suggest to set it to "UTF-8"
4. Check file.encoding Java property of JVM instance running JMeter. It can be done via
* checking jmeter.log file for something like "2013/11/09 18:09:14 INFO - jmeter.JMeter: file.encoding=XXXXX"
* adding Debug Sampler and View Results Tree listener.
* using __Beanshell function to print out "file.encoding" property as