0 Replies Latest reply on Jun 25, 2008 3:49 PM by 666705

    Beehive error: "Could not find shared flow with name X"

    666705
      Hi,

      Please take a look at the following code snippet:
      @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;
      }
      }
      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.