[ http://issues.apache.org/jira/browse/BEEHIVE-826?page=comments#action_12317527 ]
Julie Zhuo commented on BEEHIVE-826: ------------------------------------ I was using the page flow attached for the repro. I will take a close look at it. Thanks. > Misleading secondary exception when an Error is thrown from an action > --------------------------------------------------------------------- > > Key: BEEHIVE-826 > URL: http://issues.apache.org/jira/browse/BEEHIVE-826 > Project: Beehive > Type: Bug > Components: NetUI > Versions: v1m1 > Reporter: Rich Feit > Assignee: Julie Zhuo > Fix For: V1 > Attachments: foo.zip > > To reproduce this, hit the attached page flow (/foo/Controller.jpf), which > throws an Error in its begin method. This Error should *not* be handled by > the @Jpf.Catch, which only handles Exceptions. > EXPECTED: a container-provided error page that shows something like this: > java.lang.Error: hi > foo.Controller.begin(Controller.java:16) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:585) > > org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:823) > > org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:753) > > org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:427) > > org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:285) > > org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:307) > ACTUAL: the handleException method is called, and takes you to our index.jsp > which shows the following stacktrace: > java.lang.ClassNotFoundException: handleException > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) > at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117) > at > org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143) > at > org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:529) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processException(PageFlowRequestProcessor.java:978) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:105) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:1999) > at > org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:63) > at > org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:86) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2068) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:594) > at > org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:867) > at > org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600) > at > org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at 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