tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Len Popp" <len.p...@gmail.com>
Subject Re: Erratic HTTP response behavior
Date Wed, 13 Jun 2007 23:38:43 GMT
It's pretty obvious by now that no-one's going to be able to email you
a solution to your problem, which seems unique or at least very
unusual. You're going to have to dig deeply into this one yourself.

Here's what I'd do, if it helps you any. I would track the problem
requests from the browser to the server and back again, at several
points, to see where it's going wrong.
- Look at the request and response in the browser using a plug-in like
LiveHTTPHeaders or ieHTTPHeaders.
- Log the requests received by Tomcat (AccessLogValve or RequestDumperValve).
- Put logging messages in your application, in every servlet or JSP,
to see what piece of code is executed for each request.
- Use a network sniffer (e.g. Wireshark) to see if the HTTP responses
are being sent to the correct clients. You may have to log traffic at
both the client and server ends if there's a proxy or gateway between
them.

Given all of those logs, you should be able to figure out where a
particular request went astray - in Tomcat, in the application, or in
the network. My money's on the network.
-- 
Len

On 6/13/07, Matt Cosentino <mattcoz@yahoo.com> wrote:
> Well that didn't last long.  After making some other changes the problem has returned...
with a vengeance!  Seriously, it's even weirder than before.  Not only are some responses
coming back chunked, but some are coming back completely wrong.  Like I try to open my index
page and it responds with an image.  I tried reverting everything that I changed back to how
they were before and the problem doesn't go away.  So strange, could really use some help.
>
> ----- Original Message ----
> From: Matt Cosentino <mattcoz@yahoo.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Wednesday, June 13, 2007 2:20:24 PM
> Subject: Re: Erratic HTTP response behavior
>
> Ok, so I made a small change and somehow I think I fixed it.  I removed the following
line from my page:
>
> <link rel="icon" type="image/x-icon" href="/images/icon.ico">
>
> This happened by accident, I only removed it because the icon didn't exist at that path.
 After doing that I noticed that everything would always load correctly.
>
> I then added it back to see if that really did fix it, and sure enough the problem came
back.  Then I just moved the line before some files that I often had problems loading, and
the problem went away.  So it seems to me that when Tomcat tried to respond to that request
it was breaking the responses of the other resources, somehow.  I don't understand it, but
I figured I'd at least share my experience in case this helps anyone else.
>
> ----- Original Message ----
> From: Matt Cosentino <mattcoz@yahoo.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Monday, June 11, 2007 1:07:37 PM
> Subject: Re: Erratic HTTP response behavior
>
> In a previous discussion it was said that the problem was fixed in 5.5.17, so maybe the
problem was reintroduced somehow.
>
> ----- Original Message ----
> From: Matt Cosentino <mattcoz@yahoo.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Friday, June 8, 2007 6:12:28 PM
> Subject: Re: Erratic HTTP response behavior
>
> I tried looking through the archive and just couldn't find any help.  The problem has
recently reproduced itself on a new Tomcat 5.5.23 install on one of my co-worker's machine,
so it's not my PC.  I've also experienced it more often with random images or other resources
not loading, and when I check the network monitor in Firebug it lists the transfer-encoding
for them as chunked.  Luckily this problem has never surfaced on our production server which
is version 5.5.17, but I don't see any configuration differences.  This is driving me nuts,
so any help would be greatly appreciated.
>
> ----- Original Message ----
> From: Matt Cosentino <mattcoz@yahoo.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Friday, May 25, 2007 4:09:57 PM
> Subject: Re: Erratic HTTP response behavior
>
> No I am on intending on using chunked responses.  Is there a way to disable it?
>
> ----- Original Message ----
> From: Christopher Schultz <chris@christopherschultz.net>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Friday, May 25, 2007 4:02:58 PM
> Subject: Re: Erratic HTTP response behavior
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matt,
>
> You're right, this /is/ erratic behavior. I think something is going
> wrong with your headers or something:
>
> Matt Cosentino wrote:
> > </body></html>0 HTTP/1.1 200 OKServer: Apache-Coyote/1.1Transfer-Encoding:
chunkedDate: Fri, 18 May 2007 22:35:13 GMT
>
> Your response headers appear to be after the body of the response.
> Either that or the headers I see there are supposed to be the headers
> from the next chunk and/or request in a keepalive request.
>
> Are you intending to use "chunked" responses? 'Cause it looks like they
> are being used. There was some in-depth discussion of chunked responses
> somewhat recently on the list. Perhaps you could take a look at that for
> some reference points (but I'm not saying that it will solve your problem).
>
> I think the problem might be that you are getting chunked encoding for
> some reason, but you don't really want it.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGV08C9CaO5/Lv0PARArfQAJoD+kMZLUVWthGyRuv0NWKIKSuXcACfYh+I
> sJuvF8+a8MgIcIu3gd1hGak=
> =u9oS
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
>
>
> ____________________________________________________________________________________Be
a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers -
Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> http://answers.yahoo.com/dir/?link=list&sid=396546091
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
>
>       ____________________________________________________________________________________
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! Search
> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers
- Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message