Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 53452 invoked from network); 31 Jan 2006 21:17:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jan 2006 21:17:13 -0000 Received: (qmail 8666 invoked by uid 500); 31 Jan 2006 21:16:59 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 8625 invoked by uid 500); 31 Jan 2006 21:16:59 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 8607 invoked by uid 99); 31 Jan 2006 21:16:59 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 13:16:56 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id CFC00E0 for ; Tue, 31 Jan 2006 22:16:34 +0100 (CET) Message-ID: <668384867.1138742194848.JavaMail.jira@ajax.apache.org> Date: Tue, 31 Jan 2006 22:16:34 +0100 (CET) From: "Julie Zhuo (JIRA)" To: dev@beehive.apache.org Subject: [jira] Closed: (BEEHIVE-962) Assertion error when creating a page flow through FlowControllerFactory.createPageFlow, and onCreate() throws an exception In-Reply-To: <1174706780.1128485927896.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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: miniTests.createPageFlow.Controller@1dd1ed2 > 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