[ http://issues.apache.org/jira/browse/BEEHIVE-962?page=all ]
     
Julie Zhuo closed BEEHIVE-962:
------------------------------


Verified with rev373873. It created the pageflow successfully and throw the 
intential exception in the log and console.

> Assertion error when creating a page flow through 
> FlowControllerFactory.createPageFlow, and onCreate() throws an exception
> --------------------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-962
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-962
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Rich Feit
>     Assignee: Julie Zhuo
>      Fix For: 1.0.1

>
> Repro:
>     - Create a page flow with the following onCreate method:
>         protected void onCreate()
>         {
>             throw new IllegalStateException("Intentional exception");
>         }
>     - Create a JSP in *another directory* (not the page flow directory), with 
> the following code in it:
>         <%
>             FlowControllerFactory f = 
> FlowControllerFactory.get(pageContext.getServletContext());
>             PageFlowController pfc = f.createPageFlow(new 
> RequestContext(request, response), "miniTests.createPageFlow.Controller");
>         %>
>         Page flow instance is: <%= pfc %>
>     - Hit the JSP in a browser.
> EXPECTED: an exception stacktrace in the logs for IllegalStateException, and 
> a page in the browser with something like this:
>        Page flow instance is: [EMAIL PROTECTED]
> ACTUAL: an assertion error page:
> java.lang.AssertionError: 
> org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestImpl
>       at 
> org.apache.beehive.netui.pageflow.internal.PageFlowRequestWrapper.get(PageFlowRequestWrapper.java:54)
>       at 
> org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler.handleException(DefaultExceptionsHandler.java:106)
>       at 
> org.apache.beehive.netui.pageflow.FlowController.handleException(FlowController.java:260)
>       at 
> org.apache.beehive.netui.pageflow.FlowController.create(FlowController.java:528)
>       at 
> org.apache.beehive.netui.pageflow.PageFlowController.create(PageFlowController.java:399)
>       at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(FlowControllerFactory.java:357)
>       at 
> org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(FlowControllerFactory.java:183)

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