File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes My Servlet's 'first time' rendering blues. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "My Servlet Watch "My Servlet New topic

My Servlet's 'first time' rendering blues.

Vikram Ramaswamy

Joined: Mar 21, 2009
Posts: 9
Hi All,

I have a servlet application running on JRUN\IIS and intermittently the servlet displays a blank page and then a IE page refresh displays the page correctly. I don't see anything unusual in the logs either.

I know the information above might be too generic, but I am hoping to getting some direction, if at all, on possible places to look at, from those that might have encountered such issues or "gurus" with incredible imagination.

Note: I will understand if this thread is ignored for want of code information, but I can't post any specific details of the application except that it is a normal servlet that tries to access a DB and displays data...
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63857

When you get the "blank page" is the servlet invoked at all?

[Asking smart questions] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I have seen the "blank page" effect when I forgot to flush and close the response output stream.

Vikram Ramaswamy

Joined: Mar 21, 2009
Posts: 9
Bear, yes, the Servlet is invoked.

William, I am looking into the code to see if response streams are being closed. The displayed page is made up of chunks of data processed by different classes and then combined together, so, there are plenty of places for me to check, thanks for the good lead!

I agree. Here's the link:
subject: My Servlet's 'first time' rendering blues.
It's not a secret anymore!