Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 76589 invoked from network); 12 Apr 2002 07:10:41 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Apr 2002 07:10:41 -0000 Received: (qmail 10136 invoked by uid 97); 12 Apr 2002 07:10:48 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 10120 invoked by uid 97); 12 Apr 2002 07:10:48 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 10109 invoked from network); 12 Apr 2002 07:10:47 -0000 Message-ID: <21d8b3941e7b9870731ad05e112181293cb6891b@> From: Torsten Fohrer To: "'Tomcat Developers List'" Subject: POSSIBLE BUG, in ErrorReportValve or HttpServletResponse implemen tation Date: Fri, 12 Apr 2002 09:12:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N We have installed Apache 2 and Tomcat 4 for Performance/stabletests on some machines, when we request some pages that not exists, some browser the plain html source code of the error page from tomcat (konqueror 2-3, netscape 4, and so on...). I think at first i can be the mod_jk module, but tomcat alone have this too. I have break down the error to ErrorReportValve in Line 353, where the content-type of then response are set. Possible the content-type isn't set, can be set but no exception is thrown, i have insert a System.out and no one is thrown. SOURCE CODE: Writer writer = response.getReporter(); if (writer != null) { try { >> hres.setContentType("text/html"); // Possible this setting isn't applied? } catch (Throwable t) { if (debug >= 1) log("status.setContentType", t); } // If writer is null, it's an indication that the response has // been hard committed already writer.write(sb.toString()); writer.flush(); } When i try it with telnet localhost 8080, i get this reponse: GET /index2.jsp HTTP/1.0 Accept: text/*, */* HTTP/1.1 404 /index2.jsp Connection: close Date: Fri, 12 Apr 2002 09:03:28 GMT Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector) Apache Tomcat/4.0.1 - Error report

Apache Tomcat/4.0.1 - HTTP Status 404 - /index2.jsp


type Status report

message /index2.jsp

description The requested resource (/index2.jsp) is not available.


Connection closed by foreign host. Thanks for help... Torsten Fohrer -- To unsubscribe, e-mail: For additional commands, e-mail: