Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 99988 invoked from network); 31 Aug 2005 05:40:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2005 05:40:09 -0000 Received: (qmail 70259 invoked by uid 500); 31 Aug 2005 05:40:08 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 70233 invoked by uid 500); 31 Aug 2005 05:40:07 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 70220 invoked by uid 99); 31 Aug 2005 05:40:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 22:40:06 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 42535128 for ; Wed, 31 Aug 2005 07:40:05 +0200 (CEST) Message-ID: <1415353900.1125466805268.JavaMail.jira@ajax.apache.org> Date: Wed, 31 Aug 2005 07:40:05 +0200 (CEST) From: "Rich Feit (JIRA)" To: dev@beehive.apache.org Subject: [jira] Closed: (BEEHIVE-903) Incoherent error message when an exception handler method throws an unhandled exception In-Reply-To: <1464154992.1125459844728.JavaMail.jira@ajax.apache.org> 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 [ http://issues.apache.org/jira/browse/BEEHIVE-903?page=all ] Rich Feit closed BEEHIVE-903: ----------------------------- Resolution: Fixed Assign To: (was: Rich Feit) Fixed with revision 264946. Added a manual test case. Closing. > Incoherent error message when an exception handler method throws an unhandled exception > --------------------------------------------------------------------------------------- > > Key: BEEHIVE-903 > URL: http://issues.apache.org/jira/browse/BEEHIVE-903 > Project: Beehive > Type: Bug > Components: NetUI > Versions: v1m1 > Reporter: Rich Feit > Fix For: V1 > > This bug was distilled from a conversation with Xibin Zeng about http://issues.apache.org/jira/browse/BEEHIVE-899 . > Repro: > - Create the following page flow controller: > ---- > @Jpf.Controller( > catches={ > @Jpf.Catch(type=Exception.class, method="handleIt") > } > ) > public class Controller extends PageFlowController > { > @Jpf.Action > public Forward begin() > { > throw new IllegalStateException("intentional"); > } > @Jpf.ExceptionHandler > public Forward handleIt(Exception ex, String actionName, String message, Object formBean) > { > throw new UnsupportedOperationException("another intentional exception"); > } > } > ---- > - Hit it in the browser. > EXPECTED: go to the normal unhandled-exception page, with a stack trace for the IllegalStateException (the original exception), and also see the stacktrace for the UnsupportedOperationException in the logs. > ACTUAL: > java.lang.ClassNotFoundException: handleIt > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) > org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117) > org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143) > org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:529) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processException(PageFlowRequestProcessor.java:1026) > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:105) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2048) > org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2119) > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:600) > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:886) > org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:613) > org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163) > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- 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