tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Anybody can help me?Thank you!
Date Fri, 02 Dec 2011 16:52:53 GMT
Hash: SHA1


On 12/2/11 11:20 AM, 孙文 wrote:
> I use tomcat 7.0.22,when i use  getResponse().sendRedirect(url) in 
> action(Struts2 ),i watch tomcat log ,record this in following
> picture.
> []
> why?

It could be many things: the error message itself is in Chinese, and
it's in an image so there's no way for me to plug it into Google
Translate to see what it actually says.

My guess is that the client disconnected before you were able to send
the redirect, and so there's nowhere for the data to go -- that would
be a case where this exception is entirely expected and shouldn't be
considered a problem.

> and sometimes tomcat is not in service.but cpu \ memory and tomcat 
> thread is normal in solaris.

So, you're saying that Tomcat isn't running but it is somehow still
running? Can you be more specific? Why do you think it's running? Why
do you think it's not running?

By the way, you have code after your "sendRedirect" call that might
affect the response -- that's probably a bad idea. Generally, you want
"sendRedirect" to be the last thing your code does before returning
from the doGet (or functionally-equivalent) method.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message