Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 8504 invoked from network); 7 Jul 2006 11:28:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 11:28:23 -0000 Received: (qmail 19242 invoked by uid 500); 7 Jul 2006 11:28:22 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 18929 invoked by uid 500); 7 Jul 2006 11:28:20 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 18914 invoked by uid 99); 7 Jul 2006 11:28:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 04:28:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 04:28:19 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF80441044F for ; Fri, 7 Jul 2006 11:26:29 +0000 (GMT) Message-ID: <31915892.1152271589847.JavaMail.jira@brutus> Date: Fri, 7 Jul 2006 11:26:29 +0000 (GMT+00:00) From: "Jan Dankert (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (MYFACES-1356) While throwing a ServletException, the rootCause should be set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N While throwing a ServletException, the rootCause should be set -------------------------------------------------------------- Key: MYFACES-1356 URL: http://issues.apache.org/jira/browse/MYFACES-1356 Project: MyFaces Core Type: Improvement Components: General Versions: 1.2.0-SNAPSHOT Environment: All Reporter: Jan Dankert In the class FacesServlet (and maybe more locations) a ServletException is thrown while loosing the RootCause. The Stacktrace will be broken. Instead of "throw new ServletException(e.getMessage(), e);" You should use the method "initCause()", f.e.: ServletException se = new ServletException( e.getMassage ); se.initCause( e ); throw se; Thanks a lot Jan Dankert -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira