[ 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