You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Suresh Babu <so...@gmail.com> on 2010/02/02 13:17:37 UTC
Re: Problem while replaying the script
Thank you Deepak for your quick reply and suggestion
The problem has been resolved by adding the HTTP CookieManager, Now it is
successfully executing.
i have recorded a new script on a java application but iam unable to execute
it.
iam getting the following error in the jmeter log file
jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
Can you please help in resolving the above issue.
Regards,
Suresh
On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com> wrote:
> You have some problem in your test (assuming it works from the browser)
> *Caused by: java.net.ProtocolException: Server redirected too many times*
>
> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
> search
> a lot of messages in the mail archive for how to debug when your test
> doesn't work the same way as your browser
> a. Typically did you add a CookieManager
> b. Does your test have Follow Redirects checked (instead of redirect
> automatically)
>
> regards
> deepak
>
>
>
>
> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com> wrote:
>
> > Hi All,
> >
> > I have successfull recorded the script using HTTP proxy server but iam
> > facing an issue while replaying the same script. Below are the errors
> shown
> > in the View results. Please help me in resolving the issue
> >
> > java.io.IOException
> > at
> >
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
> > at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
> > at
> >
> >
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
> > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
> > at java.lang.Thread.run(Thread.java:534)
> > Caused by: java.net.ProtocolException: Server redirected too many times
> > (20)
> > at
> >
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
> > at
> >
> >
> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
> > at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
> > at java.net.URLConnection.getContentLength(URLConnection.java:371)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
> > ... 6 more
> >
> > Thanks in Advance
> >
> > Suresh
> >
>
Re: Problem while replaying the script
Posted by sebb <se...@gmail.com>.
http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
On 02/02/2010, Suresh Babu <so...@gmail.com> wrote:
> Is there any other way to resolve this issue. Please help
>
> Regards,
>
> Suresh
>
>
> On Tue, Feb 2, 2010 at 7:01 PM, Suresh Babu <so...@gmail.com> wrote:
>
> > i have tried as suggested by you, but still the same issue, not able to
> > execute.
> >
> >
> > On Tue, Feb 2, 2010 at 6:27 PM, Jatin Davey <ja...@cisco.com> wrote:
> >
> >> Uncheck "Redirect Automatically" and just have "Follow Re-Directs"
> >> checked.
> >>
> >>
> >> Thanks
> >> Jatin
> >>
> >> Suresh Babu wrote:
> >>
> >>> Thanks Jatin
> >>>
> >>> What would be the probable solution to resolve this issue, i could see
> >>> the
> >>> application is running successfully manually.
> >>>
> >>> i have added HTTP Cookie manager and tried with Redirect automatically
> >>> and
> >>> follow redirects checked but no luck.
> >>>
> >>> and also i could see "There were errors in your submission" in
> >>> login_Ajax.js
> >>> HTTP request before the result page in results tree but here it have not
> >>> used login step.
> >>>
> >>> Are there things which i have to add to my test plan..
> >>>
> >>> Thanks in advance
> >>>
> >>> Regards,
> >>> Suresh
> >>> On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com> wrote:
> >>>
> >>>
> >>>
> >>>> Response Code of 404 means the following:
> >>>>
> >>>> The requested resource could not be found but may be available again in
> >>>> the
> >>>> future.^[2] <
> >>>>
> >>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1
> >>>> >
> >>>> Subsequent requests by the client are permissible.
> >>>>
> >>>> For a complete list of HTTP Error codes , please look at :
> >>>>
> >>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
> >>>>
> >>>> Thanks
> >>>> Jatin
> >>>>
> >>>>
> >>>> Suresh Babu wrote:
> >>>>
> >>>>
> >>>>
> >>>>> Thank you Deepak for your quick reply and suggestion
> >>>>>
> >>>>> The problem has been resolved by adding the HTTP CookieManager, Now it
> >>>>> is
> >>>>> successfully executing.
> >>>>>
> >>>>> i have recorded a new script on a java application but iam unable to
> >>>>> execute
> >>>>> it.
> >>>>> iam getting the following error in the jmeter log file
> >>>>>
> >>>>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
> >>>>>
> >>>>> Can you please help in resolving the above issue.
> >>>>>
> >>>>> Regards,
> >>>>> Suresh
> >>>>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> You have some problem in your test (assuming it works from the
> >>>>>> browser)
> >>>>>> *Caused by: java.net.ProtocolException: Server redirected too many
> >>>>>> times*
> >>>>>>
> >>>>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
> >>>>>> search
> >>>>>> a lot of messages in the mail archive for how to debug when your test
> >>>>>> doesn't work the same way as your browser
> >>>>>> a. Typically did you add a CookieManager
> >>>>>> b. Does your test have Follow Redirects checked (instead of redirect
> >>>>>> automatically)
> >>>>>>
> >>>>>> regards
> >>>>>> deepak
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi All,
> >>>>>>>
> >>>>>>> I have successfull recorded the script using HTTP proxy server but
> >>>>>>> iam
> >>>>>>> facing an issue while replaying the same script. Below are the errors
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> shown
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> in the View results. Please help me in resolving the issue
> >>>>>>>
> >>>>>>> java.io.IOException
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
> >>>>>>> at java.lang.Thread.run(Thread.java:534)
> >>>>>>> Caused by: java.net.ProtocolException: Server redirected too many
> >>>>>>> times
> >>>>>>> (20)
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
> >>>>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> ... 6 more
> >>>>>>>
> >>>>>>> Thanks in Advance
> >>>>>>>
> >>>>>>> Suresh
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Problem while replaying the script
Posted by Deepak Shetty <sh...@gmail.com>.
hi
Add a view results tree listener, look at which request is giving you a 404
, check the path and see if the file is actually present or not (you can
directly type it into a browser). Please use the mail archives to see
numerous discussions of similar problems
regards
deepak
On Tue, Feb 2, 2010 at 6:46 AM, Suresh Babu <so...@gmail.com> wrote:
> Is there any other way to resolve this issue. Please help
>
> Regards,
> Suresh
>
> On Tue, Feb 2, 2010 at 7:01 PM, Suresh Babu <so...@gmail.com> wrote:
>
> > i have tried as suggested by you, but still the same issue, not able to
> > execute.
> >
> >
> > On Tue, Feb 2, 2010 at 6:27 PM, Jatin Davey <ja...@cisco.com> wrote:
> >
> >> Uncheck "Redirect Automatically" and just have "Follow Re-Directs"
> >> checked.
> >>
> >>
> >> Thanks
> >> Jatin
> >>
> >> Suresh Babu wrote:
> >>
> >>> Thanks Jatin
> >>>
> >>> What would be the probable solution to resolve this issue, i could see
> >>> the
> >>> application is running successfully manually.
> >>>
> >>> i have added HTTP Cookie manager and tried with Redirect automatically
> >>> and
> >>> follow redirects checked but no luck.
> >>>
> >>> and also i could see "There were errors in your submission" in
> >>> login_Ajax.js
> >>> HTTP request before the result page in results tree but here it have
> not
> >>> used login step.
> >>>
> >>> Are there things which i have to add to my test plan..
> >>>
> >>> Thanks in advance
> >>>
> >>> Regards,
> >>> Suresh
> >>> On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com>
> wrote:
> >>>
> >>>
> >>>
> >>>> Response Code of 404 means the following:
> >>>>
> >>>> The requested resource could not be found but may be available again
> in
> >>>> the
> >>>> future.^[2] <
> >>>>
> >>>>
> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1
> >>>> >
> >>>> Subsequent requests by the client are permissible.
> >>>>
> >>>> For a complete list of HTTP Error codes , please look at :
> >>>>
> >>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
> >>>>
> >>>> Thanks
> >>>> Jatin
> >>>>
> >>>>
> >>>> Suresh Babu wrote:
> >>>>
> >>>>
> >>>>
> >>>>> Thank you Deepak for your quick reply and suggestion
> >>>>>
> >>>>> The problem has been resolved by adding the HTTP CookieManager, Now
> it
> >>>>> is
> >>>>> successfully executing.
> >>>>>
> >>>>> i have recorded a new script on a java application but iam unable to
> >>>>> execute
> >>>>> it.
> >>>>> iam getting the following error in the jmeter log file
> >>>>>
> >>>>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
> >>>>>
> >>>>> Can you please help in resolving the above issue.
> >>>>>
> >>>>> Regards,
> >>>>> Suresh
> >>>>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> You have some problem in your test (assuming it works from the
> >>>>>> browser)
> >>>>>> *Caused by: java.net.ProtocolException: Server redirected too many
> >>>>>> times*
> >>>>>>
> >>>>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviourand
> >>>>>> search
> >>>>>> a lot of messages in the mail archive for how to debug when your
> test
> >>>>>> doesn't work the same way as your browser
> >>>>>> a. Typically did you add a CookieManager
> >>>>>> b. Does your test have Follow Redirects checked (instead of redirect
> >>>>>> automatically)
> >>>>>>
> >>>>>> regards
> >>>>>> deepak
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi All,
> >>>>>>>
> >>>>>>> I have successfull recorded the script using HTTP proxy server but
> >>>>>>> iam
> >>>>>>> facing an issue while replaying the same script. Below are the
> errors
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> shown
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> in the View results. Please help me in resolving the issue
> >>>>>>>
> >>>>>>> java.io.IOException
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
> >>>>>>> at java.lang.Thread.run(Thread.java:534)
> >>>>>>> Caused by: java.net.ProtocolException: Server redirected too many
> >>>>>>> times
> >>>>>>> (20)
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> at
> java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
> >>>>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
> >>>>>>> at
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> ... 6 more
> >>>>>>>
> >>>>>>> Thanks in Advance
> >>>>>>>
> >>>>>>> Suresh
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
>
Re: Problem while replaying the script
Posted by Suresh Babu <so...@gmail.com>.
Is there any other way to resolve this issue. Please help
Regards,
Suresh
On Tue, Feb 2, 2010 at 7:01 PM, Suresh Babu <so...@gmail.com> wrote:
> i have tried as suggested by you, but still the same issue, not able to
> execute.
>
>
> On Tue, Feb 2, 2010 at 6:27 PM, Jatin Davey <ja...@cisco.com> wrote:
>
>> Uncheck "Redirect Automatically" and just have "Follow Re-Directs"
>> checked.
>>
>>
>> Thanks
>> Jatin
>>
>> Suresh Babu wrote:
>>
>>> Thanks Jatin
>>>
>>> What would be the probable solution to resolve this issue, i could see
>>> the
>>> application is running successfully manually.
>>>
>>> i have added HTTP Cookie manager and tried with Redirect automatically
>>> and
>>> follow redirects checked but no luck.
>>>
>>> and also i could see "There were errors in your submission" in
>>> login_Ajax.js
>>> HTTP request before the result page in results tree but here it have not
>>> used login step.
>>>
>>> Are there things which i have to add to my test plan..
>>>
>>> Thanks in advance
>>>
>>> Regards,
>>> Suresh
>>> On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com> wrote:
>>>
>>>
>>>
>>>> Response Code of 404 means the following:
>>>>
>>>> The requested resource could not be found but may be available again in
>>>> the
>>>> future.^[2] <
>>>>
>>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1
>>>> >
>>>> Subsequent requests by the client are permissible.
>>>>
>>>> For a complete list of HTTP Error codes , please look at :
>>>>
>>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
>>>>
>>>> Thanks
>>>> Jatin
>>>>
>>>>
>>>> Suresh Babu wrote:
>>>>
>>>>
>>>>
>>>>> Thank you Deepak for your quick reply and suggestion
>>>>>
>>>>> The problem has been resolved by adding the HTTP CookieManager, Now it
>>>>> is
>>>>> successfully executing.
>>>>>
>>>>> i have recorded a new script on a java application but iam unable to
>>>>> execute
>>>>> it.
>>>>> iam getting the following error in the jmeter log file
>>>>>
>>>>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>>>>>
>>>>> Can you please help in resolving the above issue.
>>>>>
>>>>> Regards,
>>>>> Suresh
>>>>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> You have some problem in your test (assuming it works from the
>>>>>> browser)
>>>>>> *Caused by: java.net.ProtocolException: Server redirected too many
>>>>>> times*
>>>>>>
>>>>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
>>>>>> search
>>>>>> a lot of messages in the mail archive for how to debug when your test
>>>>>> doesn't work the same way as your browser
>>>>>> a. Typically did you add a CookieManager
>>>>>> b. Does your test have Follow Redirects checked (instead of redirect
>>>>>> automatically)
>>>>>>
>>>>>> regards
>>>>>> deepak
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> I have successfull recorded the script using HTTP proxy server but
>>>>>>> iam
>>>>>>> facing an issue while replaying the same script. Below are the errors
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> shown
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> in the View results. Please help me in resolving the issue
>>>>>>>
>>>>>>> java.io.IOException
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>>>>>> at java.lang.Thread.run(Thread.java:534)
>>>>>>> Caused by: java.net.ProtocolException: Server redirected too many
>>>>>>> times
>>>>>>> (20)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
>>>>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> ... 6 more
>>>>>>>
>>>>>>> Thanks in Advance
>>>>>>>
>>>>>>> Suresh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
Re: Problem while replaying the script
Posted by Suresh Babu <so...@gmail.com>.
i have tried as suggested by you, but still the same issue, not able to
execute.
On Tue, Feb 2, 2010 at 6:27 PM, Jatin Davey <ja...@cisco.com> wrote:
> Uncheck "Redirect Automatically" and just have "Follow Re-Directs" checked.
>
>
>
> Thanks
> Jatin
>
> Suresh Babu wrote:
>
>> Thanks Jatin
>>
>> What would be the probable solution to resolve this issue, i could see the
>> application is running successfully manually.
>>
>> i have added HTTP Cookie manager and tried with Redirect automatically and
>> follow redirects checked but no luck.
>>
>> and also i could see "There were errors in your submission" in
>> login_Ajax.js
>> HTTP request before the result page in results tree but here it have not
>> used login step.
>>
>> Are there things which i have to add to my test plan..
>>
>> Thanks in advance
>>
>> Regards,
>> Suresh
>> On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com> wrote:
>>
>>
>>
>>> Response Code of 404 means the following:
>>>
>>> The requested resource could not be found but may be available again in
>>> the
>>> future.^[2] <
>>>
>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1
>>> >
>>> Subsequent requests by the client are permissible.
>>>
>>> For a complete list of HTTP Error codes , please look at :
>>>
>>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
>>>
>>> Thanks
>>> Jatin
>>>
>>>
>>> Suresh Babu wrote:
>>>
>>>
>>>
>>>> Thank you Deepak for your quick reply and suggestion
>>>>
>>>> The problem has been resolved by adding the HTTP CookieManager, Now it
>>>> is
>>>> successfully executing.
>>>>
>>>> i have recorded a new script on a java application but iam unable to
>>>> execute
>>>> it.
>>>> iam getting the following error in the jmeter log file
>>>>
>>>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>>>>
>>>> Can you please help in resolving the above issue.
>>>>
>>>> Regards,
>>>> Suresh
>>>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> You have some problem in your test (assuming it works from the browser)
>>>>> *Caused by: java.net.ProtocolException: Server redirected too many
>>>>> times*
>>>>>
>>>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
>>>>> search
>>>>> a lot of messages in the mail archive for how to debug when your test
>>>>> doesn't work the same way as your browser
>>>>> a. Typically did you add a CookieManager
>>>>> b. Does your test have Follow Redirects checked (instead of redirect
>>>>> automatically)
>>>>>
>>>>> regards
>>>>> deepak
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have successfull recorded the script using HTTP proxy server but iam
>>>>>> facing an issue while replaying the same script. Below are the errors
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> shown
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> in the View results. Please help me in resolving the issue
>>>>>>
>>>>>> java.io.IOException
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>>>>> at java.lang.Thread.run(Thread.java:534)
>>>>>> Caused by: java.net.ProtocolException: Server redirected too many
>>>>>> times
>>>>>> (20)
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
>>>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
>>>>>> at
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> ... 6 more
>>>>>>
>>>>>> Thanks in Advance
>>>>>>
>>>>>> Suresh
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: Problem while replaying the script
Posted by Jatin Davey <ja...@cisco.com>.
Uncheck "Redirect Automatically" and just have "Follow Re-Directs" checked.
Thanks
Jatin
Suresh Babu wrote:
> Thanks Jatin
>
> What would be the probable solution to resolve this issue, i could see the
> application is running successfully manually.
>
> i have added HTTP Cookie manager and tried with Redirect automatically and
> follow redirects checked but no luck.
>
> and also i could see "There were errors in your submission" in login_Ajax.js
> HTTP request before the result page in results tree but here it have not
> used login step.
>
> Are there things which i have to add to my test plan..
>
> Thanks in advance
>
> Regards,
> Suresh
> On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com> wrote:
>
>
>> Response Code of 404 means the following:
>>
>> The requested resource could not be found but may be available again in the
>> future.^[2] <
>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1>
>> Subsequent requests by the client are permissible.
>>
>> For a complete list of HTTP Error codes , please look at :
>>
>> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
>>
>> Thanks
>> Jatin
>>
>>
>> Suresh Babu wrote:
>>
>>
>>> Thank you Deepak for your quick reply and suggestion
>>>
>>> The problem has been resolved by adding the HTTP CookieManager, Now it is
>>> successfully executing.
>>>
>>> i have recorded a new script on a java application but iam unable to
>>> execute
>>> it.
>>> iam getting the following error in the jmeter log file
>>>
>>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>>>
>>> Can you please help in resolving the above issue.
>>>
>>> Regards,
>>> Suresh
>>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
>>> wrote:
>>>
>>>
>>>
>>>
>>>> You have some problem in your test (assuming it works from the browser)
>>>> *Caused by: java.net.ProtocolException: Server redirected too many
>>>> times*
>>>>
>>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
>>>> search
>>>> a lot of messages in the mail archive for how to debug when your test
>>>> doesn't work the same way as your browser
>>>> a. Typically did you add a CookieManager
>>>> b. Does your test have Follow Redirects checked (instead of redirect
>>>> automatically)
>>>>
>>>> regards
>>>> deepak
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have successfull recorded the script using HTTP proxy server but iam
>>>>> facing an issue while replaying the same script. Below are the errors
>>>>>
>>>>>
>>>>>
>>>> shown
>>>>
>>>>
>>>>
>>>>> in the View results. Please help me in resolving the issue
>>>>>
>>>>> java.io.IOException
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>>>>
>>>>
>>>>
>>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>>>> at java.lang.Thread.run(Thread.java:534)
>>>>> Caused by: java.net.ProtocolException: Server redirected too many times
>>>>> (20)
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
>>>>
>>>>
>>>>
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
>>>>
>>>>
>>>>
>>>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
>>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
>>>>> at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
>>>>
>>>>
>>>>
>>>>> ... 6 more
>>>>>
>>>>> Thanks in Advance
>>>>>
>>>>> Suresh
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Problem while replaying the script
Posted by Suresh Babu <so...@gmail.com>.
Thanks Jatin
What would be the probable solution to resolve this issue, i could see the
application is running successfully manually.
i have added HTTP Cookie manager and tried with Redirect automatically and
follow redirects checked but no luck.
and also i could see "There were errors in your submission" in login_Ajax.js
HTTP request before the result page in results tree but here it have not
used login step.
Are there things which i have to add to my test plan..
Thanks in advance
Regards,
Suresh
On Tue, Feb 2, 2010 at 5:51 PM, Jatin Davey <ja...@cisco.com> wrote:
> Response Code of 404 means the following:
>
> The requested resource could not be found but may be available again in the
> future.^[2] <
> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1>
> Subsequent requests by the client are permissible.
>
> For a complete list of HTTP Error codes , please look at :
>
> http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
>
> Thanks
> Jatin
>
>
> Suresh Babu wrote:
>
>> Thank you Deepak for your quick reply and suggestion
>>
>> The problem has been resolved by adding the HTTP CookieManager, Now it is
>> successfully executing.
>>
>> i have recorded a new script on a java application but iam unable to
>> execute
>> it.
>> iam getting the following error in the jmeter log file
>>
>> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>>
>> Can you please help in resolving the above issue.
>>
>> Regards,
>> Suresh
>> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com>
>> wrote:
>>
>>
>>
>>> You have some problem in your test (assuming it works from the browser)
>>> *Caused by: java.net.ProtocolException: Server redirected too many
>>> times*
>>>
>>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
>>> search
>>> a lot of messages in the mail archive for how to debug when your test
>>> doesn't work the same way as your browser
>>> a. Typically did you add a CookieManager
>>> b. Does your test have Follow Redirects checked (instead of redirect
>>> automatically)
>>>
>>> regards
>>> deepak
>>>
>>>
>>>
>>>
>>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com> wrote:
>>>
>>>
>>>
>>>> Hi All,
>>>>
>>>> I have successfull recorded the script using HTTP proxy server but iam
>>>> facing an issue while replaying the same script. Below are the errors
>>>>
>>>>
>>> shown
>>>
>>>
>>>> in the View results. Please help me in resolving the issue
>>>>
>>>> java.io.IOException
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
>>>
>>>
>>>> at
>>>>
>>>>
>>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>>>
>>>
>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>>> at java.lang.Thread.run(Thread.java:534)
>>>> Caused by: java.net.ProtocolException: Server redirected too many times
>>>> (20)
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
>>>
>>>
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
>>>
>>>
>>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
>>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
>>>> at
>>>>
>>>>
>>>>
>>>>
>>>
>>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
>>>
>>>
>>>> ... 6 more
>>>>
>>>> Thanks in Advance
>>>>
>>>> Suresh
>>>>
>>>>
>>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: Problem while replaying the script
Posted by Jatin Davey <ja...@cisco.com>.
Response Code of 404 means the following:
The requested resource could not be found but may be available again in
the future.^[2]
<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#cite_note-RFC_2616-1>
Subsequent requests by the client are permissible.
For a complete list of HTTP Error codes , please look at :
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Thanks
Jatin
Suresh Babu wrote:
> Thank you Deepak for your quick reply and suggestion
>
> The problem has been resolved by adding the HTTP CookieManager, Now it is
> successfully executing.
>
> i have recorded a new script on a java application but iam unable to execute
> it.
> iam getting the following error in the jmeter log file
>
> jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>
> Can you please help in resolving the above issue.
>
> Regards,
> Suresh
> On Fri, Jan 29, 2010 at 11:21 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
>
>> You have some problem in your test (assuming it works from the browser)
>> *Caused by: java.net.ProtocolException: Server redirected too many times*
>>
>> Look at http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour and
>> search
>> a lot of messages in the mail archive for how to debug when your test
>> doesn't work the same way as your browser
>> a. Typically did you add a CookieManager
>> b. Does your test have Follow Redirects checked (instead of redirect
>> automatically)
>>
>> regards
>> deepak
>>
>>
>>
>>
>> On Fri, Jan 29, 2010 at 9:45 AM, Suresh Babu <so...@gmail.com> wrote:
>>
>>
>>> Hi All,
>>>
>>> I have successfull recorded the script using HTTP proxy server but iam
>>> facing an issue while replaying the same script. Below are the errors
>>>
>> shown
>>
>>> in the View results. Please help me in resolving the issue
>>>
>>> java.io.IOException
>>> at
>>>
>>>
>>>
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
>>
>>> at
>>>
>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
>>
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
>>
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
>>
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
>>
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
>>
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
>>
>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>> at java.lang.Thread.run(Thread.java:534)
>>> Caused by: java.net.ProtocolException: Server redirected too many times
>>> (20)
>>> at
>>>
>>>
>>>
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
>>
>>> at
>>>
>>>
>>>
>> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
>>
>>> at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
>>> at java.net.URLConnection.getContentLength(URLConnection.java:371)
>>> at
>>>
>>>
>>>
>> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
>>
>>> ... 6 more
>>>
>>> Thanks in Advance
>>>
>>> Suresh
>>>
>>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org