[ http://issues.apache.org/jira/browse/BEEHIVE-1012?page=all ]
     
Chad Schoettger resolved BEEHIVE-1012:
--------------------------------------

    Resolution: Won't Fix
     Assign To: Alejandro Ramirez  (was: Carlin Rogers)

I took a look at this one and the behavior seems to be as expected.  NetUI is 
logging the exception, if you would like to have the exception go to the tomcat 
log, change your logging config file to log to standard out.

To display the exception / stack trace in the jsp page use <netui: exceptions 
/> instead of the <netui:errors/> tag.  Let me know if the behavior of the 
<netui:errors> tag has changed and I can take a closer look to determine why.

> Assertion error when throwing an Error out of onCreate() in a shared flow
> -------------------------------------------------------------------------
>
>          Key: BEEHIVE-1012
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-1012
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Rich Feit
>     Assignee: Alejandro Ramirez
>      Fix For: 1.0.1
>  Attachments: netui-blank.zip
>
> Repro:
>     - In a new shared flow controller, add the following in onCreate():
>     protected void onCreate()
>     {
>         throw new Error("intentional");
>     }
>     - Create a page flow that references the shared flow.
>     - Hit the page flow.
> EXPECTED: a stacktrace for the thrown Error.
> ACTUAL:
> java.lang.AssertionError: no cached ModuleConfig for foo.SharedFlow
>         at 
> org.apache.beehive.netui.pageflow.FlowController.getModuleConfig(FlowController.java:995)
>         at 
> org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler.handleException(DefaultExceptionsHandler.java:141)
>         at 
> org.apache.beehive.netui.pageflow.FlowController.handleException(FlowController.java:288)
>         at 
> org.apache.beehive.netui.pageflow.FlowController.create(FlowController.java:556)
>         at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.createSharedFlow(FlowControllerFactory.java:405)
>         at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.createSharedFlow(FlowControllerFactory.java:382)
>         at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.addSharedFlow(FlowControllerFactory.java:541)
>         at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.getSharedFlowsForPath(FlowControllerFactory.java:472)
>         at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.getSharedFlowsForRequest(FlowControllerFactory.java:431)
>         at 
> org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:495)
>         at 
> org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:830)
>         at 
> org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:625)
>         at 
> org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:156)
>         at 
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

-- 
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

Reply via email to