Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 19207 invoked from network); 20 Feb 2004 16:52:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Feb 2004 16:52:21 -0000 Received: (qmail 71162 invoked by uid 500); 20 Feb 2004 16:51:54 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 71140 invoked by uid 500); 20 Feb 2004 16:51:54 -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 71126 invoked from network); 20 Feb 2004 16:51:54 -0000 Received: from unknown (HELO post5.inre.asu.edu) (129.219.110.120) by daedalus.apache.org with SMTP; 20 Feb 2004 16:51:54 -0000 Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0HTE001016TZCC@asu.edu> for tomcat-user@jakarta.apache.org; Fri, 20 Feb 2004 09:51:35 -0700 (MST) Received: from ex3.asurite.ad.asu.edu (ex3.asurite.ad.asu.edu [129.219.10.247]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0HTE00N986TU4X@asu.edu> for tomcat-user@jakarta.apache.org; Fri, 20 Feb 2004 09:51:30 -0700 (MST) Date: Fri, 20 Feb 2004 09:51:31 -0700 From: Wendy Smoak Subject: Tomcat and checked vs. unchecked exceptions To: Tomcat Users List Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Thread-Topic: Tomcat and checked vs. unchecked exceptions Thread-Index: AcP30b/S8c+F/aOeTl+sgHED/X8BMg== Content-Class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This got no play on comp.lang.java.programmers, and while I don't think it's Tomcat specific, I'm at a loss as to how to present a nice error page when this happens. Help? Can someone possibly shed some light on this? I have a Servlet that keeps coming up with: ExceptionConverter: java.io.IOException: The document has no pages. at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown Source) at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at com.lowagie.text.Document.close(Unknown Source) The ExceptionConverter is: http://itext.sourceforge.net/docs/com/lowagie/text/ExceptionConverter.ht ml Apparently it changes a checked exception into an unchecked one. I'm not sure what that means to me, except that try as I might, I can't catch this in Tomcat and present a nice error page: javax.servlet.ServletException /exceptions/Exception.jsp java.io.IOException /exceptions/Exception.jsp =20 com.lowagie.text.ExceptionConverter /exceptions/Exception.jsp --=20 Wendy in Chandler, AZ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org