You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Pa...@sybase.com on 2009/11/11 23:25:09 UTC

ways to resolve 'server redirect too many times' in a test plan

I set up a test plan with http request  and the method is get, I keep on
getting this error:

java.net.ProtocolException: Server redirected too many  times (20)


I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all embedded
Resources from HTML files


I still get the same error. How can I resolve this?


Thanks.

Patty


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


Re: ways to resolve 'server redirect too many times' in a test plan

Posted by Pa...@sybase.com.
Deepak,

Thanks for your ideas to poke around this issue. I have tried different
ways. When I do the request by itself, I don't have errors.   I am going to
divide my test plan up then.

I do not have errors in jmeter.log even when I have 'server redirect too
many times'.


Patty


                                                                                                                                           
  From:                                                                                                                                    
                                                                                                                                           
  To:         JMeter Users List <jm...@jakarta.apache.org>                                                                           
                                                                                                                                           
  Date:       11/11/2009 04:27 PM                                                                                                          
                                                                                                                                           
  Subject:    Re: ways to resolve 'server redirect too many times' in a test plan                                                          
                                                                                                                                           





hi
whats the port number on which your site runs, i assume it is 80 ? (80 is
default and is the same as not specifying it in http)
>on my http request: I put in www-test.sybase.com
>GET http://m-test.sybase.com:80 <http://m-test.sybase.com/>
Why is it going to m-test? do you have any host entries or something? Can
you just create a simple test with only 1 request and does it exhibit the
same problem?

whats the actual entire request/ response ? is there any error in
jmeter.log?

regards
deepak





On Wed, Nov 11, 2009 at 4:06 PM, <Pa...@sybase.com> wrote:

> Deepak,
>
>
> Thanks.
>
> I do have redirect automatically unchecked. I have no cookies on my
Request
> tab in View Results Tree. I tried on my browser and I did not experience
> any errors.  I do not have a code 3xx though.
>
> Something very strange and I still cannot figure out is:
>
> on my http request: I put in www-test.sybase.com
>
> but on Request tab of View Results Tree, my first line :
>
> GET http://m-test.sybase.com:80
>
> I do not have any :80 in my set up. For pages without errors, I do not
have
> this ":80"
>
> Thank you.
>
> Patty
>
>
>
>
>
>  From:       Deepak Shetty <sh...@gmail.com>
>
>  To:         JMeter Users List <jm...@jakarta.apache.org>
>
>  Date:       11/11/2009 02:41 PM
>
>  Subject:    Re: ways to resolve 'server redirect too many times' in a
test
> plan
>
>
>
>
>
>
> hi
> do you have redirect automatically - uncheck that?
> Also if you dont observe this behavior in a browser , then its likely
that
> you are missing something (normally a cookie manager or some special
> session
> handling , you also probably have a bug in your server code because this
> shouldnt happen even if you are missing something)
> Also enable View results tree and see what is the exact response you are
> getting (probably a 3xx to the same page)
>
> regards
> deepak
>
> On Wed, Nov 11, 2009 at 2:25 PM, <Pa...@sybase.com> wrote:
>
> >
> > I set up a test plan with http request  and the method is get, I keep
on
> > getting this error:
> >
> > java.net.ProtocolException: Server redirected too many  times (20)
> >
> >
> > I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all
embedded
> > Resources from HTML files
> >
> >
> > I still get the same error. How can I resolve this?
> >
> >
> > Thanks.
> >
> > Patty
> >
> >
> > ---------------------------------------------------------------------
> > 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: ways to resolve 'server redirect too many times' in a test plan

Posted by Deepak Shetty <sh...@gmail.com>.
Ok. You need to find out which request is giving you a 3xx response (and is
probably redirecting to itself..), probably by studying the View results
Tree ...
see also
http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour


On Wed, Nov 11, 2009 at 4:26 PM, Deepak Shetty <sh...@gmail.com> wrote:

> hi
> whats the port number on which your site runs, i assume it is 80 ? (80 is
> default and is the same as not specifying it in http)
>
> >on my http request: I put in www-test.sybase.com
> >GET http://m-test.sybase.com:80 <http://m-test.sybase.com/>
> Why is it going to m-test? do you have any host entries or something? Can
> you just create a simple test with only 1 request and does it exhibit the
> same problem?
>
> whats the actual entire request/ response ? is there any error in
> jmeter.log?
>
> regards
> deepak
>
>
>
>
>
>
> On Wed, Nov 11, 2009 at 4:06 PM, <Pa...@sybase.com> wrote:
>
>> Deepak,
>>
>>
>> Thanks.
>>
>> I do have redirect automatically unchecked. I have no cookies on my
>> Request
>> tab in View Results Tree. I tried on my browser and I did not experience
>> any errors.  I do not have a code 3xx though.
>>
>> Something very strange and I still cannot figure out is:
>>
>> on my http request: I put in www-test.sybase.com
>>
>> but on Request tab of View Results Tree, my first line :
>>
>> GET http://m-test.sybase.com:80
>>
>> I do not have any :80 in my set up. For pages without errors, I do not
>> have
>> this ":80"
>>
>> Thank you.
>>
>> Patty
>>
>>
>>
>>
>>
>>  From:       Deepak Shetty <sh...@gmail.com>
>>
>>  To:         JMeter Users List <jm...@jakarta.apache.org>
>>
>>  Date:       11/11/2009 02:41 PM
>>
>>  Subject:    Re: ways to resolve 'server redirect too many times' in a
>> test plan
>>
>>
>>
>>
>>
>>
>> hi
>> do you have redirect automatically - uncheck that?
>> Also if you dont observe this behavior in a browser , then its likely that
>> you are missing something (normally a cookie manager or some special
>> session
>> handling , you also probably have a bug in your server code because this
>> shouldnt happen even if you are missing something)
>> Also enable View results tree and see what is the exact response you are
>> getting (probably a 3xx to the same page)
>>
>> regards
>> deepak
>>
>> On Wed, Nov 11, 2009 at 2:25 PM, <Pa...@sybase.com> wrote:
>>
>> >
>> > I set up a test plan with http request  and the method is get, I keep on
>> > getting this error:
>> >
>> > java.net.ProtocolException: Server redirected too many  times (20)
>> >
>> >
>> > I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all
>> embedded
>> > Resources from HTML files
>> >
>> >
>> > I still get the same error. How can I resolve this?
>> >
>> >
>> > Thanks.
>> >
>> > Patty
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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: ways to resolve 'server redirect too many times' in a test plan

Posted by Deepak Shetty <sh...@gmail.com>.
hi
whats the port number on which your site runs, i assume it is 80 ? (80 is
default and is the same as not specifying it in http)
>on my http request: I put in www-test.sybase.com
>GET http://m-test.sybase.com:80 <http://m-test.sybase.com/>
Why is it going to m-test? do you have any host entries or something? Can
you just create a simple test with only 1 request and does it exhibit the
same problem?

whats the actual entire request/ response ? is there any error in
jmeter.log?

regards
deepak





On Wed, Nov 11, 2009 at 4:06 PM, <Pa...@sybase.com> wrote:

> Deepak,
>
>
> Thanks.
>
> I do have redirect automatically unchecked. I have no cookies on my Request
> tab in View Results Tree. I tried on my browser and I did not experience
> any errors.  I do not have a code 3xx though.
>
> Something very strange and I still cannot figure out is:
>
> on my http request: I put in www-test.sybase.com
>
> but on Request tab of View Results Tree, my first line :
>
> GET http://m-test.sybase.com:80
>
> I do not have any :80 in my set up. For pages without errors, I do not have
> this ":80"
>
> Thank you.
>
> Patty
>
>
>
>
>
>  From:       Deepak Shetty <sh...@gmail.com>
>
>  To:         JMeter Users List <jm...@jakarta.apache.org>
>
>  Date:       11/11/2009 02:41 PM
>
>  Subject:    Re: ways to resolve 'server redirect too many times' in a test
> plan
>
>
>
>
>
>
> hi
> do you have redirect automatically - uncheck that?
> Also if you dont observe this behavior in a browser , then its likely that
> you are missing something (normally a cookie manager or some special
> session
> handling , you also probably have a bug in your server code because this
> shouldnt happen even if you are missing something)
> Also enable View results tree and see what is the exact response you are
> getting (probably a 3xx to the same page)
>
> regards
> deepak
>
> On Wed, Nov 11, 2009 at 2:25 PM, <Pa...@sybase.com> wrote:
>
> >
> > I set up a test plan with http request  and the method is get, I keep on
> > getting this error:
> >
> > java.net.ProtocolException: Server redirected too many  times (20)
> >
> >
> > I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all embedded
> > Resources from HTML files
> >
> >
> > I still get the same error. How can I resolve this?
> >
> >
> > Thanks.
> >
> > Patty
> >
> >
> > ---------------------------------------------------------------------
> > 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: ways to resolve 'server redirect too many times' in a test plan

Posted by Pa...@sybase.com.
Deepak,


Thanks.

I do have redirect automatically unchecked. I have no cookies on my Request
tab in View Results Tree. I tried on my browser and I did not experience
any errors.  I do not have a code 3xx though.

Something very strange and I still cannot figure out is:

on my http request: I put in www-test.sybase.com

but on Request tab of View Results Tree, my first line :

GET http://m-test.sybase.com:80

I do not have any :80 in my set up. For pages without errors, I do not have
this ":80"

Thank you.

Patty




                                                                                                                                           
  From:       Deepak Shetty <sh...@gmail.com>                                                                                            
                                                                                                                                           
  To:         JMeter Users List <jm...@jakarta.apache.org>                                                                           
                                                                                                                                           
  Date:       11/11/2009 02:41 PM                                                                                                          
                                                                                                                                           
  Subject:    Re: ways to resolve 'server redirect too many times' in a test plan                                                          
                                                                                                                                           





hi
do you have redirect automatically - uncheck that?
Also if you dont observe this behavior in a browser , then its likely that
you are missing something (normally a cookie manager or some special
session
handling , you also probably have a bug in your server code because this
shouldnt happen even if you are missing something)
Also enable View results tree and see what is the exact response you are
getting (probably a 3xx to the same page)

regards
deepak

On Wed, Nov 11, 2009 at 2:25 PM, <Pa...@sybase.com> wrote:

>
> I set up a test plan with http request  and the method is get, I keep on
> getting this error:
>
> java.net.ProtocolException: Server redirected too many  times (20)
>
>
> I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all embedded
> Resources from HTML files
>
>
> I still get the same error. How can I resolve this?
>
>
> Thanks.
>
> Patty
>
>
> ---------------------------------------------------------------------
> 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: ways to resolve 'server redirect too many times' in a test plan

Posted by Deepak Shetty <sh...@gmail.com>.
hi
do you have redirect automatically - uncheck that?
Also if you dont observe this behavior in a browser , then its likely that
you are missing something (normally a cookie manager or some special session
handling , you also probably have a bug in your server code because this
shouldnt happen even if you are missing something)
Also enable View results tree and see what is the exact response you are
getting (probably a 3xx to the same page)

regards
deepak

On Wed, Nov 11, 2009 at 2:25 PM, <Pa...@sybase.com> wrote:

>
> I set up a test plan with http request  and the method is get, I keep on
> getting this error:
>
> java.net.ProtocolException: Server redirected too many  times (20)
>
>
> I then uncheck Follow Redirects, Use Keep/Alive and Retrieve all embedded
> Resources from HTML files
>
>
> I still get the same error. How can I resolve this?
>
>
> Thanks.
>
> Patty
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>