excel - JMeter: java.net.URISyntaxException: Malformed escape pair at index -


i recoding scenario in jmeter user searches record, once result listed, clicks on excel icon download result in .xls below error displaying while click on "excel" icon while recording.

java.net.urisyntaxexception: malformed escape pair @ index 336: https://mylink.myurl.com/change/exporthandler?objchanger=ank,all%20products,a,jan-2015,jan-2016,country,india,,,1&tablename=datatable-example5&isortcol_0=2&ssortdir_0=desc&aocolumns=name,salesa,salesb,share,&header=name,abc%20fm%20gross%20sales%20(lakhs),industry%20gross%20sales%20(lakhs),share%20share%20(%),  	at java.net.uri$parser.fail(unknown source)  	at java.net.uri$parser.scanescape(unknown source)  	at java.net.uri$parser.scan(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.httphc4impl.sample(httphc4impl.java:286)  	at org.apache.jmeter.protocol.http.sampler.httpsamplerproxy.sample(httpsamplerproxy.java:74)  	at org.apache.jmeter.protocol.http.sampler.httpsamplerbase.sample(httpsamplerbase.java:1146)  	at org.apache.jmeter.protocol.http.proxy.proxy.run(proxy.java:240)

solution on google replace % 25 in url, can somene please me in in how can encode url.

thanks!

jmeter provides __urlencode() function designed escape special characters not allowed in urls.

you can use function helper dialog available menu -> options ensure correct syntax being used

function helper dialog

see how use jmeter functions posts series comprehensive information on , other useful jmeter functions.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -