You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/08/06 22:54:24 UTC

DO NOT REPLY [Bug 45580] Unhandled NullPointerException when trying to write to a closed socket.

https://issues.apache.org/bugzilla/show_bug.cgi?id=45580


Filip Hanik <fh...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Filip Hanik <fh...@apache.org>  2008-08-06 13:54:23 PST ---
The NPE is only because of an incorrectly used response object. if you are
trying to write to a response that has been closed, in a different thread, it
is better for you to fix the application that is doing that. 

There are simply too many NPE checks to do to catch all such scenarios, and
they essentially don't do anything, they would just convert the NPE to a
IOException.

If you believe the error comes from correct usage of the response, then please
elaborate a little bit on how this happens, and we can apply a correct fix.

best
Filip


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org