-----BEGIN PGP SIGNED MESSAGE-----
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.
> 
> [java.net.SocketException]
> 
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7ZAmUACgkQ9CaO5/Lv0PDfjACffipobj44hK2dJOcivFMO/ecL
QPgAnAzLzhtFy8orswVBguQFi/xDrVCA
=zYHj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to