Re: Incomplete HTML
On Fri, Apr 16, 2004 at 11:33:54AM -0300, Leonardo Ribas wrote: My tomcat is returning incomplete html pages when the html to be returned is too big. For example, when i want to create a combo box with all cities from my country, tomcat return a incomplete html like this: ... select optioncity 1/option optioncity 2/option optioncity 3/option ... optioncity 300/option optioncity 301/option HERE TOMCAT ENDS THE HTML FOR EXAMPLE. As another poster mentioned, normally that indicates a programming error in the servlet or JSP. I've run into this sort of error frequently. What's almost certainly happening is that somewhere in your code an exception is being thrown. The exception is being swallowed by the tomcat logger. If it's not showing up in catalina.out, it's probably showing up in the localhost_foo_etc log for that web application. If my experience is any guide, most likely the exception's in an included JSP. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Incomplete HTML
My tomcat is returning incomplete html pages when the html to be returned is too big. For example, when i want to create a combo box with all cities from my country, tomcat return a incomplete html like this: ... select optioncity 1/option optioncity 2/option optioncity 3/option ... optioncity 300/option optioncity 301/option HERE TOMCAT ENDS THE HTML FOR EXAMPLE. Any idea about whats happening?? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Incomplete HTML
Hi, Normally that's an indication of a programming error. There is no file size limit in java, so I don't think Tomcat would impose a limit all by itself. -Yan -Original Message- From: Leonardo Ribas [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 08:34 To: [EMAIL PROTECTED] Subject: Incomplete HTML My tomcat is returning incomplete html pages when the html to be returned is too big. For example, when i want to create a combo box with all cities from my country, tomcat return a incomplete html like this: ... select optioncity 1/option optioncity 2/option optioncity 3/option ... optioncity 300/option optioncity 301/option HERE TOMCAT ENDS THE HTML FOR EXAMPLE. Any idea about whats happening?? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Incomplete HTML
The only situation where I can imagine tomcat forcing a file size limit is when it runs out of disk-space and this should produce an error message. I seem to remember a similar problem, I can't remember exactly how I solved it ( I may have re-written the page ) but here are some things to look for: Does the page take a dis-proportionately long time to load or timeout? -This could indicate that the program is stuck in a loop or other area. Do you use nested loops (particularly while loops)? -This could easily kill tomcat, a nested while loop with a lot of data is often a killer! Try running the program with verbose comments and / or with some kind of step-through mode to see if it's a programming error. HTH, apologies for any rambling / inconsistancies - it's 6pm on a friday night and I'm knackered!! Ad. On Fri, 2004-04-16 at 17:49, Yansheng Lin wrote: Hi, Normally that's an indication of a programming error. There is no file size limit in java, so I don't think Tomcat would impose a limit all by itself. -Yan -Original Message- From: Leonardo Ribas [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 08:34 To: [EMAIL PROTECTED] Subject: Incomplete HTML My tomcat is returning incomplete html pages when the html to be returned is too big. For example, when i want to create a combo box with all cities from my country, tomcat return a incomplete html like this: ... select optioncity 1/option optioncity 2/option optioncity 3/option ... optioncity 300/option optioncity 301/option HERE TOMCAT ENDS THE HTML FOR EXAMPLE. Any idea about whats happening?? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Browser got incomplete html
On Mon, Mar 24, 2003 at 09:25:36PM +, Jon Wingfield wrote: Have a look in the tomcat log files. Either catalina.out or localhost_log.date.txt. I'll bet there's an exception in one of those. If a jsp scriptlet or custom tag throws an uncaught exception Tomcat may not be able to forward to any predefined error pages because part of the response has already been flushed back to the client (browser). So, what you get is an IllegalStateException in the logs and a half-formed page in the browser. I've run into this fairly often. I've also seen that sometimes the exception is mysteriously swallowed, not printed to the log. Most often this seems to crop up with a bracket {} mis-configuration in try/catch or if/else blocks. I've gotten to the point where, if I see an incomplete page, I check the log, skim the page source to see if I can spot a bracket mis-configuration, and then throw: try { ... } catch (Throwable t) { t.printStackTrace(); } ...around the whole thing temporarily, to see if I can get an exception stack trace to see what problem is actually causing the behavior. I've also found it helpful on occasion to crack open the generated java source and see if it indents properly in emacs/JDE. Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Browser got incomplete html
Hello, I met this problem. My html page showed incompletely. Sometimes html tag like "TD" is showed, and sometimes only half of the whole result showed. I read the source of the html, it seems browser got imcomplete html. I'm using Tomcat4.1.18, Apache1.3.12 and mod_Jk2 OS is solaris8. Thanks for any help Regards, Xiaoling
Re: Browser got incomplete html
Have a look in the tomcat log files. Either catalina.out or localhost_log.date.txt. I'll bet there's an exception in one of those. If a jsp scriptlet or custom tag throws an uncaught exception Tomcat may not be able to forward to any predefined error pages because part of the response has already been flushed back to the client (browser). So, what you get is an IllegalStateException in the logs and a half-formed page in the browser. Hope this helps, Jon Xiaoling Chen wrote: Hello, I met this problem. My html page showed incompletely. Sometimes html tag like TD is showed, and sometimes only half of the whole result showed. I read the source of the html, it seems browser got imcomplete html. I'm using Tomcat4.1.18, Apache1.3.12 and mod_Jk2 OS is solaris8. Thanks for any help Regards, Xiaoling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]