Thanks. The HTTP Sampler Path is a variable which holds the query. I'm 
just going to update the data file directly for now and convert '|' to 
%7C. 

> Date: Tue, 24 Apr 2012 10:30:31 -0700
> Subject: Re: URISyntaxException
> From: [email protected]
> To: [email protected]
> 
> Hi
> if this is related to your previous posts , then you will have to escape
> the URL's yourself (using beanshell or equivalent).
> Im assuming you have a single string as the URL that you are using in the
> HTTPSampler rather than the PATH + query parameters separately (in which
> case you could use the encode checkbox)
> 
> regards
> deepak
> 
> On Mon, Apr 23, 2012 at 11:08 PM, Marcelo Jara <[email protected]>wrote:
> 
> >
> > Hello
> >
> > Some queries in my data set have a pipe character. These are failing  in
> > jmeter due to a parsing issue. I'm using httpclient4.  Do I need to use
> > some pre-processor to escape the character?
> >
> > java.net.URISyntaxException: Illegal character in query at index 101:
> > http://test.thisisatestabc.com/resources?type=JS&r=/js/vendor/html5shim.js&r=/js/vendor/respond.js&r=|y|yui/yui-min.js&r=xy-yui-config&r=/js/widgets/external.js&r=/js/core/utility/domready.js
> >    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.HTTPHC4Impl.sample(HTTPHC4Impl.java:227)
> >    at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
> >    at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054)
> >    at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043)
> >    at
> > org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
> >    at java.lang.Thread.run(Unknown Source)
> >
> > Thanks,
> >
> > MJ
> >
                                          

Reply via email to