AssertionError in Forward.initFrom() using validationErrorForward with an 
outputFormBean
----------------------------------------------------------------------------------------

         Key: BEEHIVE-1110
         URL: http://issues.apache.org/jira/browse/BEEHIVE-1110
     Project: Beehive
        Type: Bug

  Components: NetUI  
    Versions: 1.0.1, v.next    
    Reporter: Carlin Rogers
    Priority: Minor


If a nested page flow return action fails to validate a form (via the 
validate() method) and goes to a  validationErrorForward that has a form bean, 
an AssertionError will be thrown while trying to initialize the forward. The 
stack trace is...

Throwable: java.lang.AssertionError
Stack Trace:
java.lang.AssertionError
        at org.apache.beehive.netui.pageflow.Forward.initFrom(Forward.java:554)
        at org.apache.beehive.netui.pageflow.Forward.<init>(Forward.java:276)
        at 
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1610)
        at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:964)
        at 
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processValidate(PageFlowRequestProcessor.java:2173
)
        at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
        at 
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:554)

        at 
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:851)
        at 
org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:630)
        at 
org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)


The assert fails because the Forward method initFrom() expects the 
_flowController member variable not to be null. In most code paths, 
initialize() would have been called and this variable set.

I will attach a repro to the bug.

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

Reply via email to