On 24 June 2011 04:40, Will Milspec <will.mils...@gmail.com> wrote:
> Hi all,
>
> This is the first of two problems I found tonight.
>
> I'm new to Jmeter having used primarily a lightweight tool called "wapt"

JMeter version?

> Here's the problem:
> Some requests in my test fail with response code
> "java.lang.IllegalArgumentException." It turned out this
> "illegalargumentexception" occurs not on the server side, but in the java
> httpclient
>
>
> It appears to try to get this url:
>
>    <java.net.URL>
> http://site.company.com/pe/FileDownloadServlet?fileName=/img/members\member_10186952_1229535508021.gif
> </java.net.URL>

What does the corresponding section of the JMX file show?

> then fails with this error:
>    <responseData
> class="java.lang.String">java.lang.IllegalArgumentException: Invalid uri
> &apos;
> http://site.company.com/pe/FileDownloadServlet?fileName=/img/members\member_10186952_1229535508021.gif&apos;:
> Invalid query&#xd;
>    at
> org.apache.commons.httpclient.HttpMethodBase.&lt;init&gt;(HttpMethodBase.java:222)&#xd;
>
> A few points/questions:
> * The proxy recorded this url. Why did the proxy 'bless' the url, but
> complain now?
> * what specifically about the url is a problem? I would imagine it's the
> backslash-members "\members"...
>
> I've included the whole 'httpsample' entry as it may shed some light.
>
> thanks in advance,
> will
>
>
>  <httpSample t="0" it="0" lt="0" ts="1308884481627" s="false" lb="Error:
> http://site.company.com/pe/FileDownloadServlet?fileName=/img/members\member_10186952_1229535508021.gif";
> rc="Non HTTP response code: java.lang.IllegalArgumentException" tn="jp@gc -
> Stepping Thread Group 1-3" dt="text" de="" by="1112" sc="1" ec="1" ng="0"
> na="0" hn="i-715bde1d">
>    <responseHeader class="java.lang.String"></responseHeader>
>    <requestHeader class="java.lang.String"></requestHeader>
>    <responseData
> class="java.lang.String">java.lang.IllegalArgumentException: Invalid uri
> &apos;
> http://site.company.com/pe/FileDownloadServlet?fileName=/img/members\member_10186952_1229535508021.gif&apos;:
> Invalid query&#xd;
>    at
> org.apache.commons.httpclient.HttpMethodBase.&lt;init&gt;(HttpMethodBase.java:222)&#xd;
>    at
> org.apache.commons.httpclient.methods.GetMethod.&lt;init&gt;(GetMethod.java:89)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:872)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.downloadPageResources(HTTPSamplerBase.java:1115)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1316)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:966)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)&#xd;
>    at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:951)&#xd;
>    at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:348)&#xd;
>    at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)&#xd;
>    at java.lang.Thread.run(Thread.java:619)&#xd;
> </responseData>
>    <responseFile class="java.lang.String"></responseFile>
>    <cookies class="java.lang.String"></cookies>
>    <method class="java.lang.String">GET</method>
>    <queryString class="java.lang.String"></queryString>
>    <java.net.URL>
> http://site.company.com/pe/FileDownloadServlet?fileName=/img/members\member_10186952_1229535508021.gif
> </java.net.URL>
>  </httpSample>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

Reply via email to