Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 15719 invoked from network); 5 Feb 2002 22:50:33 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Feb 2002 22:50:33 -0000 Received: (qmail 29960 invoked by uid 97); 5 Feb 2002 22:50:12 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 29944 invoked by uid 97); 5 Feb 2002 22:50:12 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29933 invoked from network); 5 Feb 2002 22:50:11 -0000 Message-ID: <3C606E11.4DBF0DCF@distributopia.com> Date: Tue, 05 Feb 2002 17:43:13 -0600 From: "Christopher K. St. John" X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Tomcat 4, IOExceptions, Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tomcat 4 throws away servlet generated IOExceptions. For example: public void doGet(HttpServletRequest req, HttpServletResponse rsp) throws IOException, ServletException { PrintWriter pwrt = rsp.getWriter(); pwrt.println("HELLO"); throw new IOException("my very own io exception"); } In Tomcat 4 will produce a 200 OK response with a body of "HELLO". Tomcat 3 and Jetty both send back an HTTP error response. From my reading of SRV.9.9.2 Jetty and 3 are right, 4 is wrong. But... Tomcat 4's behavior appears to be on purpose. There is a catch(IOException) in StandardWrapperValve.invoke() that has the comments: ; // No reporting to the response ; // No change in availability status I thought I had seen a discussion of this before, but either I was hallucinating or I'm using the wrong set of search terms when I check the list archives (and bugzilla and google). So, anyway, is this a bug or a feature? -- Christopher St. John cks@distributopia.com DistribuTopia http://www.distributopia.com -- To unsubscribe: For additional commands: Troubles with the list: