What does 'java.lang.IllegalStateException: Configuration is frozen' mean?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   e_s
Posted On:   Wednesday, May 25, 2005 06:07 PM

I trying to add a ForwardConfig object to a mapping in an Action class. The following error occurs:




			
500 Servlet Exception
java.lang.IllegalStateException: Configuration is frozen
at org.apache.struts.config.ActionConfig.addForwardConfig(ActionConfig.java:626)

What does it mean and how can I get around it?


Thanks,
E

Re: What does 'java.lang.IllegalStateException: Configuration is frozen' mean?

Posted By:   Anonymous  
Posted On:   Wednesday, June 15, 2005 11:16 AM

Are you trying to modify an ActionForward in your action? If so, creating a new instance of ActionForward in stead of modifying the old one will work.

Re: What does 'java.lang.IllegalStateException: Configuration is frozen' mean?

Posted By:   alan_do  
Posted On:   Wednesday, May 25, 2005 11:41 PM

i believe you are trying to dynamically add to the action configuration AFTER the configuration have been frozen during the application start up. i am not sure that there is a way around this.


to me, you may be doing something that you shouldn't be doing. if you are trying to add a forward dynamically because you have dynamic jsp's based on an action's outcome, perhaps you can have 1 pre-defined forward and set a dynamic attribute that can be used to do a jsp:include.

About | Sitemap | Contact