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)" <de...@beehive.apache.org> on 2005/10/05 06:18:47 UTC

[jira] Created: (BEEHIVE-962) Assertion error when creating a page flow through FlowControllerFactory.createPageFlow, and onCreate() throws an exception

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


[jira] Closed: (BEEHIVE-962) Assertion error when creating a page flow through FlowControllerFactory.createPageFlow, and onCreate() throws an exception

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


[jira] Resolved: (BEEHIVE-962) Assertion error when creating a page flow through FlowControllerFactory.createPageFlow, and onCreate() throws an exception

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

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

Fixed with revision 294989.

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