JSP not loading fully
From this monday suddenly, one of our heavily used web pages is having strange problem in IE. The jsp doesn't load fully. When I check the view source, it only shows half of its source.
I checked with Operations to see if the added any patch. They didn't. Also, checked with DB team and Application server team. No one has done anything.
Strange is, the page loads in firefox. Let me know if you guys have any suggestions. Thanks,
Maddy.
When a JSP catches an exception it tries to forward to an error page that will generally show the exception stacktrace that was thrown.
However, forwarding or redirecting only works when data hasn't been flushed to the browser yet. This creates the problem that when an exception occurs AFTER data has been flushed (this will happen automatically when the output buffer becomes full), you only get half the output.
Check the logfiles of your webserver, I'm sure that it has the exception that is being caused.
We didn't see any error in any of the log files(server log as well as application log).
But we identified some time-consuming parts of the JSP, and moved them to JSP. Bingo!! It works. But very slowly. May be the output buffer is not cleared.
But why was it working for 3 years, and suddenly for two weeks not working? Anyway..how to find out if the output buffer is full or not?
> But why was it working for 3 years, and suddenly for two weeks not working?
You tell me! I can't look at the system, the code or anything else! I can only guess at what might be going wrong.
Judging by your comments I would say that it is not normal that the code is slow, so that would be a good place to start looking for the problem. Slow code will prevent the JSP from finishing execution and that will prevent the buffer from being flushed.