Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1223

"Could not find shared flow with name X" even when it's specified correctly in the code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.2
    • None
    • NetUI
    • None
    • BEA Portal 10

    Description

      Hi,

      Please take a look at the following code snippet:

      [code]
      @Jpf.Controller(
      sharedFlowRefs =

      { @Jpf.SharedFlowRef(name = "rootSharedFlow", type= com.company.portlets.BigGatewayAgentSharedFlow.class) }


      )
      public final class MasterPinPopulateController extends BigGatewayAgentController {
      private static final long serialVersionUID = -3177980439461585579L;

      @Jpf.SharedFlowField(name = "rootSharedFlow")
      private BigGatewayAgentSharedFlow sharedFlow;

      .
      .
      .
      }

      public class BigGatewayAgentController extends PageFlowController {
      private static final long serialVersionUID = 6528555130532846044L;
      private transient Logger log = Logger.getLogger(this.getClass());

      @Jpf.Action(
      forwards =

      { @Jpf.Forward(name = "success", path = "index.jsp") }

      )
      public Forward begin() throws Exception

      { return new Forward("success"); }

      public Logger getLog()

      { return log; }

      }
      [/code]

      When running the code I get this error in the logs:
      ERROR org.apache.beehive.netui.pageflow.PageFlowController - Could not find shared flow with name "rootSharedFlow" to initialize field sharedFlow in com.company.portlets.extensivesearch.MasterPinPopulateController

      I think the error has something to do with the fact that I'm declaring a shared flow in a class that doesn't extend PageFlowController directly.

      The same happens with other classes that declare their page flows in a similar fashion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eliseosoto Eliseo Soto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: