Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 78753 invoked from network); 1 Feb 2000 08:22:23 -0000 Received: from gate.verona.se (193.183.219.213) by 63.211.145.10 with SMTP; 1 Feb 2000 08:22:23 -0000 Received: from verona.se (gate.verona.se [193.183.219.213]) by gate.verona.se (8.9.1/8.9.1) with ESMTP id JAA20473 for ; Tue, 1 Feb 2000 09:37:48 +0100 Sender: joakim@verona.se Message-ID: <38969804.F931211A@verona.se> Date: Tue, 01 Feb 2000 09:23:32 +0100 From: Joakim Verona X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: "tomcat-dev@jakarta.apache.org" Subject: thought on error handling strategy Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello, i was trying to set up tomcat 3m1 for use with the linux blackdown 1.2.2 rc3 jdk. it works fine with jdk 1.1.8 but in 1.2 i get "could not create bean of xxx" where xxx is my own bean. Ok, this might be for whatever trivial reason, wrong classpath etc, but if i look in the generated source for my jsp page, i see that the actual bean instantiation exception is caught and thrown again with the original stacktrace removed. this means that i cant see the actual cause of the error, unless i run tomcat under a debugger. in another system i designed i had a simmilar problem, and there i made a exception subclass that could contain a reference to another(more basal) exception. so any number of exceptions could be chained and no info would get lost when you rethrowed the exceptions from a higher level. then yo.u could make a nice display of the error whe you actually wanted to show the user someting is this something that is proposed for tomcat, or already working except in my configuration? the "root cause" exception display seems to be in this direction. i read some messages about error handling and that they should be more user oriented. thats fine, but i would also not like the detail to get lost. just a user opinion. i might experiment with adding this feature myself just to sort my own problem out. (but tomcat seems difficult to build, as far as i can determine from the messages on this list) -- Joakim Verona joakim@verona.se http://www.verona.se/~joakimv