Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 8010 invoked from network); 1 Sep 2005 06:36:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 06:36:09 -0000 Received: (qmail 71251 invoked by uid 500); 1 Sep 2005 06:36:08 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 71231 invoked by uid 500); 1 Sep 2005 06:36: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 71217 invoked by uid 99); 1 Sep 2005 06:36: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; Wed, 31 Aug 2005 23:36:07 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 03654121 for ; Thu, 1 Sep 2005 08:36:06 +0200 (CEST) Message-ID: <1907204385.1125556566011.JavaMail.jira@ajax.apache.org> Date: Thu, 1 Sep 2005 08:36:06 +0200 (CEST) From: "Rich Feit (JIRA)" To: dev@beehive.apache.org Subject: [jira] Reopened: (BEEHIVE-898) Bogus Forward from a PageFlow Action method results in a java.lang.ClassNotFoundException In-Reply-To: <1459808981.1125074846135.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-898?page=all ] Rich Feit reopened BEEHIVE-898: ------------------------------- Assign To: Rich Feit I'm reopening this and reassigning to me, based on Glauber's comment: "As to http://issues.apache.org/jira/browse/BEEHIVE-898. I have the latest files from SVN and I still get "java.lang.ClassNotFoundException for handlePageFlowException". After applying the following patch, I got the proper error page. Index: netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java =================================================================== --- netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java (revision 265638) +++ netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java (working copy) @@ -189,9 +189,12 @@ { ret = invokeExceptionHandlerMethod( context, ex, pfExceptionConfig, form, actionMapping ); } + else + { + ret = invokeExceptionHandlerClass( context, ex, pfExceptionConfig, actionMapping, form ); + } } - - if ( ret == null ) + else { ret = invokeExceptionHandlerClass( context, ex, exceptionConfig, actionMapping, form ); } " > Bogus Forward from a PageFlow Action method results in a java.lang.ClassNotFoundException > ----------------------------------------------------------------------------------------- > > Key: BEEHIVE-898 > URL: http://issues.apache.org/jira/browse/BEEHIVE-898 > Project: Beehive > Type: Bug > Components: NetUI > Versions: v1m1 > Environment: ALL > Reporter: Xibin Zeng > Assignee: Rich Feit > > Repro steps: > 1. Create a shared flow in your app that handles PageFlowException, for example: > @Jpf.Controller( > catches={ > @Jpf.Catch(type=PageFlowException.class, method="handlePageFlowException") > } > ) > public class SharedFlow extends SharedFlowController > { > ... > } > 2. In your Controller class, create the shared flow reference to the shared flow created in step 1. > 3. In the same Controller class in step 2, create an action method that returns an unresolveable Forward. > After compiling and deploying the app, now hit the action create in step 3. Rather than getting a PageFlow error that indicates it could not resolve the Forward, it chokes on a java.lang.ClassNotFoundException for handlePageFlowException. > A quick debugging point to ExceptionConfig ... > at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) > at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) > at org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler.invokeExceptionHandlerClass(DefaultExceptionsHandler.java:339) > at org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler.handleException(DefaultExceptionsHandler.java:196) > at org.apache.beehive.netui.pageflow.FlowController.handleException(FlowController.java:259) > at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:444) > at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:285) > at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:307) > at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:48) > at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) > at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:105) > at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2048) > at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90) > at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2119) > at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:600) > at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:886) > at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:613) > at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) -- 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