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/11/18 18:37:42 UTC

[jira] Created: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

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


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


[jira] Resolved: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

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

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

Fixed with revision 345554.

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

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


[jira] Resolved: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

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


[jira] Reopened: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

Posted by "Alejandro Ramirez (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-1012?page=all ]
     
Alejandro Ramirez reopened BEEHIVE-1012:
----------------------------------------

     Assign To: Carlin Rogers  (was: Alejandro Ramirez)

Hmm, there seems to have been a regression here.  I was doing the repro with the attached webapp and I was expecting to see an error in the Tomcat logs and in the index.jsp page as well (since I'm using the <netui:errors /> tag.  However, no stack trace was shown in either.

The stack trace showed up in the beehive log that I have set up via log4j.xml.  Is that correct?  I've added the "beehive.log" to the attached zip of the webapp I've used to reproduce the problem.


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


[jira] Updated: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

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

Alejandro Ramirez updated BEEHIVE-1012:
---------------------------------------

    Attachment: netui-blank.zip

This is the webapp that I used to reproduce the problem.

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


[jira] Closed: (BEEHIVE-1012) Assertion error when throwing an Error out of onCreate() in a shared flow

Posted by "Alejandro Ramirez (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-1012?page=all ]
     
Alejandro Ramirez closed BEEHIVE-1012:
--------------------------------------


(Visible to jira-users)


> 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