Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 42760 invoked from network); 5 Oct 2005 07:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2005 07:53:51 -0000 Received: (qmail 80275 invoked by uid 500); 5 Oct 2005 07:53:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 79392 invoked by uid 500); 5 Oct 2005 07:53:34 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 79381 invoked by uid 99); 5 Oct 2005 07:53:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2005 00:53:34 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.135.225.92] (HELO photon.eurokom.ie) (192.135.225.92) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2005 00:53:37 -0700 Received: from HOLODECK ([192.168.225.57]) by vms.eurokom.ie (PMDF V6.2-1x9 #40199) with SMTP id <01LTTWNOB5SKDMX6HB@vms.eurokom.ie> for tomcat-user@jakarta.apache.org; Wed, 05 Oct 2005 08:53:07 +0100 (WET-DST) Date: Wed, 05 Oct 2005 08:52:29 +0100 From: Andoni Subject: No stack trace? To: Tomcat Users List Message-id: <004701c5c981$bca26290$39e1a8c0@HOLODECK> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Mailer: Microsoft Outlook Express 6.00.2800.1506 Content-type: multipart/alternative; boundary="Boundary_(ID_IigsR2PNd/G+SgNl0HYtlg)" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Boundary_(ID_IigsR2PNd/G+SgNl0HYtlg) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7BIT Hello, I am currently trying to implement a system which sends me an email if the site ever has an exception (not that it ever will of course!). To this end I have inserted a simple exception into my code and when I run the code in Tomcat there is no stack trace! Either in the HTML of the JSP or in the console! I simply did: String nullStr = null; nullStr.trim(); both in a servlet and in a JSP and neither seem to have any effect. Going to other applications that I am working on at the moment I can cause a stack trace in them no problem. Under what conditions (if any) will Tomcat swallow the output of an exception (a stack trace)? Thanks in advance, Andoni. --Boundary_(ID_IigsR2PNd/G+SgNl0HYtlg)--