my dog learned polymorphism*
The moose likes Tomcat and the fly likes Long Transaction showing Page cannot be displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Long Transaction showing Page cannot be displayed" Watch "Long Transaction showing Page cannot be displayed" New topic
Author

Long Transaction showing Page cannot be displayed

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi All,
In our application we are performing a search which will take atleast
20 - 25 mints to get the results. While the Back end is still process the request, the Front End stays for 7 to 8 mints and all of a sudden the "Page cannot be displayed" page is shown. Even now the Back End is still process the request.

The server we use is Tomcat 4.12 and Apache as the webserver. I though it would be because of request time out but we have configured request time out to be 1 hour. I don't see any errors in the log as well. This situation is seriously strange for us.

One more info is we have used struts framework in our application. I would appreciate if someone could help me out in this issue.


Regards,
Sivaraman.L
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

It has nothing to do with your server settings. The browser will wait only so long.

You are going to need to try a different technique. I mean, really, who;s going to sit at their browser and wait for 25 minutes?

Search these forums for "long running process".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Originally posted by Sivaraman Lakshmanan:
which will take atleast 20 - 25 mints to get the results

I can easily eat 30, and perhaps 40, mints while waiting! What kind of mints do you give out?

Seriously, please use real words when posting to the forums. Abbreviations such as "mints" in place of "minutes" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
[ April 17, 2008: Message edited by: Bear Bibeault ]
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi Bear,
Sorry for abberivating the words. That was a typo on my side. I will make sure to avoid this in future.

Regarding my problem, I cannot change my process now as we are useing it for a long time. To be frank, from the front end we just get the results from back end and show it to the users, only the back end process takes very long time. We also have other applications which generates report and will take around 30 minutes for the results to come back.

Any help on this is very much appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Sorry, but there is no help. The browsers will time out before the long process is done. You're either going to have to live with it, or fix your process.
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi bear,
Thanks for the reply. If I want to fix this would you suggest me a best way to do it?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

You might want to check out Ben Souther's example code. Look down the page for "Long running process".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Long Transaction showing Page cannot be displayed
 
Similar Threads
Page cannot be displayed on multiple request.
Session timeout
weblogic resends the same request
My session expire even while I working on it
Long process...problem