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