[Opensource] transition.transition error

Eddie Lewis ELewis at copyright.com.au
Sun Oct 26 22:01:12 PST 2003


I am converting expresso 4.0.2 code to 5.0.3RC5
I am trying to transition betwen states in different controllers.
Original code that used to work is
 
Transition forward = new Transition();
forward.addParam("controller", CPParams.sCPOutcomeCont);
forward.addParam("state", "redirectPage");
forward.transition(request,response);
return;
 
also tried to set the controller and the state via
 
forward.setControllerObject(CPParams.sCPOutcomeCont);
forward.setState("redirectPage");
 
also tried a new helper method in the expresso code
 
CPOutcomeCont cpout = new CPOutcomeCont();
cpout.transition("redirectPage", request, response);
transition("redirectPage", cpout.getClass(), request, response); // new
method of the controller object
forward.transition(request,response);
return;
 
 
All the above get the same error when executed !
 

1.	The Controller object called "com.cal.cp.controller.CPLoginCont"
reported a problem. 

2.	The problem reported was "Nested exception message:postLoginProcess
error ControllerException: ConfigManager.getMapping(): stateName was null
and there is no defined initial state for:
com.cal.cp.controller.CPOutcomeCont" 

3.	No error number was specified. 

We have extended the SimpleLoginController (CPLoginCont) and are overriding
postLoginProcess in the state processLogin. I have left the initialState of
the target controller as null as the transition would always run it by
default.
 
The first code extract did work in 4.0.2 - all three above compile ok
however none operate as required.
Does anybody have any ideas or example code calls i could use if i am
missing something.
 
Thanks
Eddie Lewis.
This electronic mail message and any attachments are confidential. If you are not the intended recipient please do not use the information, advise us immediately and destroy this message. Opinions and information in this message are those of the sender and not necessarily those of CAL. Unless expressly permitted by the sender, you may not copy, disclose or use the contents in any way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20031027/1ee47e08/attachment-0002.htm


More information about the Opensource mailing list