You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <be...@incubator.apache.org> on 2005/06/17 01:35:46 UTC

[jira] Created: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

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
 Assigned to: Rich Feit 
     Fix For: V1


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


[jira] Closed: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]
     
Julie Zhuo closed BEEHIVE-826:
------------------------------

    Resolution: Fixed

Added additional configuration and everything is working as expected now. This is verified at rev227121.

> 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


[jira] Reopened: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]
     
Julie Zhuo reopened BEEHIVE-826:
--------------------------------

     Assign To: Rich Feit  (was: Julie Zhuo)

Verified with rev227121 with both Tomcat5.5.9 and Tomcat5.025. Hiting the pageflow does not produced the expected exception, it instead produces an empty excpetion. Here is how the exception look like.,

jira826/foo/Controller.jpf
The exception was: 

Also, no more details can be found in Tomcat log file.



> 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: Rich Feit
>      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


[jira] Resolved: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]
     
Rich Feit resolved BEEHIVE-826:
-------------------------------

    Resolution: Fixed
     Assign To: Alejandro Ramirez  (was: Rich Feit)

Fixed with revision 191486.

> 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: Alejandro Ramirez
>      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


[jira] Assigned: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]

Carlin Rogers reassigned BEEHIVE-826:
-------------------------------------

    Assign To: Julie Zhuo  (was: Rich Feit)

Julie, So there was an exception but it just wasn't displayed in your
error page? Could you look at your error page JSP and make sure that the 
stack trace attributes are OK for the <netui:exceptions> in the page.
I was able to see the trace of the exception displayed in my error page.

Thanks,
Carlin

> 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


[jira] Updated: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]

Rich Feit updated BEEHIVE-826:
------------------------------

    Attachment: foo.zip

Repro page flow.

> 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: Rich Feit
>      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


[jira] Assigned: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-826?page=all ]

Alejandro Ramirez reassigned BEEHIVE-826:
-----------------------------------------

    Assign To: Julie Zhuo  (was: Alejandro Ramirez)

Please verify in V1 (trunk for now)

> 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


[jira] Commented: (BEEHIVE-826) Misleading secondary exception when an Error is thrown from an action

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
    [ 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