commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Charles Huey" <>
Subject Re: HttpClient: Maximum redirects (100) exceeded
Date Wed, 07 Apr 2004 19:01:08 GMT
I hope I didn't scare any knowledgable folks off with too much info in my
last email.  Someone suggested I run a wire trace log, so I did, but I'm
wondering if this one part might be the clincher:

2004/04/07 09:38:59:306 CDT [DEBUG] HttpMethodBase - -Redirecting from
'' to

2004/04/07 09:38:59:446 CDT [DEBUG] HttpMethodBase - -Should close
connection in response to Connection: close

I know HttpClient doesn't redirect to different domains, but this
shouldn't count as another domain...I'm wondering if it's thinking it's
another domain or if it's a similar problem, though.  


----- Original message -----
From: "Stephen Charles Huey" <>
To: "Jakarta Commons Users List" <>
Date: Wed, 07 Apr 2004 10:12:02 -0500
Subject: Re: HttpClient:  Maximum redirects (100) exceeded

I didn't copy all of my message here.  Basically, my problem is that I'm
getting this when trying to execute a simple GET:

Apr 7, 2004 10:00:54 AM org.apache.commons.httpclient.HttpMethodBase

SEVERE: Narrowly avoided an infinite loop in execute

org.apache.commons.httpclient.HttpRecoverableException: Maximum redirects
(100) exceeded

	at org.apache.commons.httpclient.HttpMethodBase.execute(

I've been doing this for a long time, but something changed on the
website and I guess that change is making me go into an infinite loop, so
I'm trying to figure out how to get around that so I can download my
addresses with this Java program once again.  The statement "Execute loop
try 1" will show up 100 times in my wire trace log, and it just tries the
same block of code below each time.  I don't understand a lot of it, but
I'm particularly wondering what it means when it says "Should close
connection in response to Connection: close".  I'm also wondering why the
socket appears to be stale...I had to use a GET and a POST and a GET
before this point, so there has been plenty of activity!  

2004/04/07 09:38:56:211 CDT [DEBUG] HttpConnection -

2004/04/07 09:38:56:361 CDT [DEBUG] HttpConnection - -An error occurred
while reading from the socket, is appears to be stale
< Socket Closed> Socket

	at Source)

	at Source)

	at Source)

	at org.apache.commons.httpclient.HttpConnection.isStale(

	at org.apache.commons.httpclient.HttpConnection.isOpen(

	at org.apache.commons.httpclient.HttpClient.executeMethod(

	at org.apache.commons.httpclient.HttpClient.executeMethod(

	at FedexWebImporter.importAll(

	at FedexWebImporter.main(

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

	at java.lang.reflect.Method.invoke(Unknown Source)

	at koala.dynamicjava.interpreter.EvaluationVisitor.visit(

	at edu.rice.cs.drjava.model.repl.EvaluationVisitorExtension.visit(

	at koala.dynamicjava.tree.StaticMethodCall.acceptVisitor(

	at edu.rice.cs.drjava.model.repl.DynamicJavaAdapter$InterpreterExtension.interpret(

	at edu.rice.cs.drjava.model.repl.DynamicJavaAdapter.interpret(

	at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM$

2004/04/07 09:38:56:532 CDT [DEBUG] HttpConnection - -Connection is
stale, closing...

2004/04/07 09:38:56:732 CDT [DEBUG] HttpMethodBase - -Execute loop try 1

2004/04/07 09:38:56:852 CDT [DEBUG] wire - ->> "GET

2004/04/07 09:38:56:952 CDT [DEBUG] HttpMethodBase - -Adding Host request

2004/04/07 09:38:57:062 CDT [DEBUG] wire - ->> "User-Agent: Jakarta

2004/04/07 09:38:57:203 CDT [DEBUG] wire - ->> "Host:[\r][\n]"

2004/04/07 09:38:57:343 CDT [DEBUG] wire - ->> "Cookie: $Version=0;
fdx_login=41.bb83.4d658350; $; $Path=/[\r][\n]"

2004/04/07 09:38:57:493 CDT [DEBUG] wire - ->> "Cookie: $Version=0;
fdx_appname=inet; $; $Path=/[\r][\n]"

2004/04/07 09:38:57:693 CDT [DEBUG] wire - ->> "[\r][\n]"

2004/04/07 09:38:57:813 CDT [DEBUG] wire - -<< "HTTP/1.1 302 Moved

2004/04/07 09:38:57:944 CDT [DEBUG] wire - -<< "Server:

2004/04/07 09:38:58:084 CDT [DEBUG] wire - -<< "Date: Wed, 07 Apr 2004
14:38:52 GMT[\r][\n]"

2004/04/07 09:38:58:234 CDT [DEBUG] wire - -<< "Location:;SWABSESSIONID=A0S85B1LbPcoaGqyWhaC7m4x6gxJ3ptWQa2gGiFlp1I1DoPWJA0W!1270069690!!7998!7002?cc_lang=us_en&returnurl=[\r][\n]"

2004/04/07 09:38:58:384 CDT [DEBUG] wire - -<< "Content-Type:

2004/04/07 09:38:58:525 CDT [DEBUG] wire - -<< "Set-Cookie:

2004/04/07 09:38:58:695 CDT [DEBUG] wire - -<< "Connection:

2004/04/07 09:38:58:845 CDT [DEBUG] HttpMethodBase - -Cookie accepted:

2004/04/07 09:38:58:995 CDT [DEBUG] HttpMethodBase - -Redirect required

2004/04/07 09:38:59:205 CDT [DEBUG] HttpMethodBase - -Redirect requested
to location

2004/04/07 09:38:59:306 CDT [DEBUG] HttpMethodBase - -Redirecting from
'' to

2004/04/07 09:38:59:446 CDT [DEBUG] HttpMethodBase - -Should close
connection in response to Connection: close

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message