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

                 Key: BEEHIVE-1223
                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1223
             Project: Beehive
          Issue Type: Bug
          Components: NetUI
    Affects Versions: 1.0.2
         Environment: BEA Portal 10
            Reporter: Eliseo Soto


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to