My Struts, Hibernate app (Appfuse based on JBoss with Tomcat plugin) has
developed a really weird bug and I have no idea after a day of searching of
how to track down the problem.

 

It seems that any request I make, be it a GET or a POST, is somehow followed
up by three GET requests for the same action. Generally for GET requests
this doesn't seem to break anything (although of course three times the
network traffic is less than ideal). If the request happens to be a POST
from a form submission however the thing tends to fall over from the
subsequent GET posts.

 

I have no idea why the browser is sending these extra requests. Nothing in
the page contents or headers seems to be likely to cause this.

 

I put a little proxy server I have between my browser and the app to see
what happens. The headers and responses are : 

 

 

======================================================

http://localhost/127.0.0.1:80

======================================================

GET /portal/gateway.do HTTP/1.0

Host: localhost

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10)
Gecko/20050716 Firefox/1.0.6

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Proxy-Connection: keep-alive

Cookie: JSESSIONID=38C8A3C4B5FED782C162C0326A38EBAE

 

 

======================================================

HTTP/1.1 200 OK

Date: Fri, 30 Dec 2005 07:16:12 GMT

Server: Apache/1.3.31 (Win32) PHP/4.3.4 mod_jk/1.2.0

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Pragma: No-cache

Cache-Control: no-cache,no-store,max-age=0

Connection: close

Content-Type: text/html;charset=ISO-8859-1

Content-Length: 16560

.

.

.

 

 

Now the above looks OK. The page renders up on the browser without a problem

 

This is followed immediately however by three identical requests like this:

 

======================================================

http://localhost/127.0.0.1:80

======================================================

GET /portal/gateway.do HTTP/1.0

Host: localhost

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10)
Gecko/20050716 Firefox/1.0.6

Accept: image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Proxy-Connection: keep-alive

Referer: http://localhost/portal/gateway.do

Cookie: JSESSIONID=38C8A3C4B5FED782C162C0326A38EBAE

 

 

======================================================

HTTP/1.1 200 OK

Date: Fri, 30 Dec 2005 07:16:12 GMT

Server: Apache/1.3.31 (Win32) PHP/4.3.4 mod_jk/1.2.0

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Pragma: No-cache

Cache-Control: no-cache,no-store,max-age=0

Connection: close

Content-Type: text/html;charset=ISO-8859-1

Content-Length: 16560

 

 

 

 

The only differences I can see between the initial Get and the following
ones are:

 

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5

 

Versus

 

Accept: image/png,*/*;q=0.5

 

 

and the three bogus requests have the line

 

Referer: http://localhost/portal/gateway.do

 

 

 

I'm wondering if anyone out there in list land has come across a problem
with similar symptoms?

 

 

Regards

Marty

 

Reply via email to