aspose file tools*
The moose likes JSP and the fly likes Does Tomcat Timeout? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Does Tomcat Timeout?" Watch "Does Tomcat Timeout?" New topic
Author

Does Tomcat Timeout?

Charessa Reilly
Ranch Hand

Joined: May 26, 2011
Posts: 39
What would make a JSP not finish running and not throw an error?

I have a JSP that queries an MS Access database, which is a very slow process (we're hopefully going to be using an Oracle database soon). But this code I've been using has always finished executing before.In addition, the page is displaying information that is in the page well after the connection the database is closed.

After it takes the information from the database it puts that information in some beans that I've written for this app. The beans have been working normally in a nearly identical set of code in a different JSP.

It then iterates through the list made of the data (a list of 35 items, which is the count it gives me when I have it display the size of the results) and displays data from up to 10 rows that meet certain criteria. It does fine through 15 iterations then stops without any error (showing 5 of the 23 records that meet the criteria). Then it just stops. No error, nothing else. It just shows me the output line at the end of the loop then stops.

Is there a timeout setting in Tomcat that I can extend? And if there is, does the timeout record an error?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61654
    
  67

This is unlikely to be caused by any sort of time-out. Rather is sounds just like what happens when an exception occurs. This may not result in any error being shown by the browser.

Have you combed the logs for any stack traces?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Charessa Reilly
Ranch Hand

Joined: May 26, 2011
Posts: 39
Yeah, there are times when I just feel like I'm in the wrong position.

I'm used to working in PHP and Perl - I would get errors right in my face as soon as I ran them. I'm used to seeing it in one place.

So when the console shows SOME things -- the stuff I wrote into my bean to display -- but doesn't show me a stack trace, i forget I have these handy logs.

SOooo yeah. I was still using an old version of a bean. Which was causing the failure. Time from checking log to successfully testing the fix: 2 minutes.

>.< Sorry to bug everyone with my ineptness.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61654
    
  67

If you learned something from the exercise (such as now knowing to look in the logs and to recognize when behind-the-scenes exceptions are boofing things up), then no one's time was wasted.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does Tomcat Timeout?