You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonathan Mast <jh...@gmail.com> on 2009/02/11 18:23:33 UTC

Why is my page repeatedly invoking itself?

Here's my setup:
Java 1.4.2
Tomcat 5.5.17
Windows XP
I'm developing in NetBeans 6.5 (which is invoking Tomcat)

The page just reads from a database and stuffs the results into a table.

I noticed that the page was taking forever to load, so i placed logging
statements in it, at the beginning of the page (before the db is accessed)
and in the middle (where the results are unrolled into a table).  Upon
looking at the log file i could see that the page was being invoked hundreds
of times.  There is no pattern discernible from the log file, the entries
are mostly like this:
begin page
print row
print row
print row
print row
begin page
print row
print row
begin page

and so on, no real pattern.

Despite being invoked (or whatever) hundreds of time, the page looks alright
once it finally finishes, which i find rather strange.
I've done many pages like this, some of are much more complex and they all
work fine.
And I know its not a problem with the DB api, i created a test page that
calls the exact same method, unrolls the returned array and does a println
for each item, and it works fine.

any help would be appreciated

Re: Why is my page repeatedly invoking itself?

Posted by Pid <p...@pidster.com>.
Using my special powers of internetelepathy, I will guess the code
contents of your page and diagnose the problem...

Ommm....

 [there will be a short delay while this occurs]

p



Jonathan Mast wrote:
> Here's my setup:
> Java 1.4.2
> Tomcat 5.5.17
> Windows XP
> I'm developing in NetBeans 6.5 (which is invoking Tomcat)
> 
> The page just reads from a database and stuffs the results into a table.
> 
> I noticed that the page was taking forever to load, so i placed logging
> statements in it, at the beginning of the page (before the db is accessed)
> and in the middle (where the results are unrolled into a table).  Upon
> looking at the log file i could see that the page was being invoked hundreds
> of times.  There is no pattern discernible from the log file, the entries
> are mostly like this:
> begin page
> print row
> print row
> print row
> print row
> begin page
> print row
> print row
> begin page
> 
> and so on, no real pattern.
> 
> Despite being invoked (or whatever) hundreds of time, the page looks alright
> once it finally finishes, which i find rather strange.
> I've done many pages like this, some of are much more complex and they all
> work fine.
> And I know its not a problem with the DB api, i created a test page that
> calls the exact same method, unrolls the returned array and does a println
> for each item, and it works fine.
> 
> any help would be appreciated
> 


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


Re: Why is my page repeatedly invoking itself?

Posted by Tim Funk <fu...@joedog.org>.
Use Firefox + LiveHttpHeaders and discover that the page is probably
being invoked many times (probaly due to a bad image tag or other media
asset)

-Tim

Jonathan Mast wrote:
> Here's my setup:
> Java 1.4.2
> Tomcat 5.5.17
> Windows XP
> I'm developing in NetBeans 6.5 (which is invoking Tomcat)
> 
> The page just reads from a database and stuffs the results into a table.
> 
> I noticed that the page was taking forever to load, so i placed logging
> statements in it, at the beginning of the page (before the db is accessed)
> and in the middle (where the results are unrolled into a table).  Upon
> looking at the log file i could see that the page was being invoked hundreds
> of times.  There is no pattern discernible from the log file, the entries
> are mostly like this:
> begin page
> print row
> print row
> print row
> print row
> begin page
> print row
> print row
> begin page
> 
> and so on, no real pattern.
> 
> Despite being invoked (or whatever) hundreds of time, the page looks alright
> once it finally finishes, which i find rather strange.
> I've done many pages like this, some of are much more complex and they all
> work fine.
> And I know its not a problem with the DB api, i created a test page that
> calls the exact same method, unrolls the returned array and does a println
> for each item, and it works fine.
> 
> any help would be appreciated
> 



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