RE: configuration is frozen
Craig, thanks for the clarification. It helps. * We'd have to synchronize around all accesses to the HashMap instances inside the configuration beans that are accessed on every request, causing a performance hit. I assume this means Struts 1.1 has significant performance improvement comparing to 1.0 and it's good to upgrade. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuration is frozen
Hi, I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal state exception and I found out that the redirection code causes this exception. ActionForward success = mapping.findForward(success); success.setRedirect(true); I aware that we can set an attribute of redirect=true in the forward tag in config file (struts-config.xml) but what happen if we need to dynamically en/disable the redirection? Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuration is frozen
You can try something like: ActionForward basis = mapping.findForward(success); ActionForward success = new ActionForward(); success.setPath(basis.getPath()); // also copy other relevant properties from basis success.setRedirect(true); return success; hth, Hubert --- Lucas Halim [EMAIL PROTECTED] wrote: Hi, I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal state exception and I found out that the redirection code causes this exception. ActionForward success = mapping.findForward(success); success.setRedirect(true); I aware that we can set an attribute of redirect=true in the forward tag in config file (struts-config.xml) but what happen if we need to dynamically en/disable the redirection? Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration is frozen
Thanks Hubert. Anybody knows why is it frozen at the first place? Is that just another mod in Struts 1.1? Lucas -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:05 AM To: Struts Users Mailing List Subject: Re: configuration is frozen You can try something like: ActionForward basis = mapping.findForward(success); ActionForward success = new ActionForward(); success.setPath(basis.getPath()); // also copy other relevant properties from basis success.setRedirect(true); return success; hth, Hubert --- Lucas Halim [EMAIL PROTECTED] wrote: Hi, I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal state exception and I found out that the redirection code causes this exception. ActionForward success = mapping.findForward(success); success.setRedirect(true); I aware that we can set an attribute of redirect=true in the forward tag in config file (struts-config.xml) but what happen if we need to dynamically en/disable the redirection? Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration is frozen
There was a thread just recently discussing that. You may be better off creating another instance anyway, because AFAIK mapping.findForward() returns the same instance for the same forward name, so even if you were able to modify that in an action call, you'd be modifying the forward being used in all requests, and you probably don't want that. --- Lucas Halim [EMAIL PROTECTED] wrote: Thanks Hubert. Anybody knows why is it frozen at the first place? Is that just another mod in Struts 1.1? Lucas -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:05 AM To: Struts Users Mailing List Subject: Re: configuration is frozen You can try something like: ActionForward basis = mapping.findForward(success); ActionForward success = new ActionForward(); success.setPath(basis.getPath()); // also copy other relevant properties from basis success.setRedirect(true); return success; hth, Hubert --- Lucas Halim [EMAIL PROTECTED] wrote: Hi, I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal state exception and I found out that the redirection code causes this exception. ActionForward success = mapping.findForward(success); success.setRedirect(true); I aware that we can set an attribute of redirect=true in the forward tag in config file (struts-config.xml) but what happen if we need to dynamically en/disable the redirection? Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration is frozen
That makes sense. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:49 AM To: Struts Users Mailing List Subject: RE: configuration is frozen There was a thread just recently discussing that. You may be better off creating another instance anyway, because AFAIK mapping.findForward() returns the same instance for the same forward name, so even if you were able to modify that in an action call, you'd be modifying the forward being used in all requests, and you probably don't want that. --- Lucas Halim [EMAIL PROTECTED] wrote: Thanks Hubert. Anybody knows why is it frozen at the first place? Is that just another mod in Struts 1.1? Lucas -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:05 AM To: Struts Users Mailing List Subject: Re: configuration is frozen You can try something like: ActionForward basis = mapping.findForward(success); ActionForward success = new ActionForward(); success.setPath(basis.getPath()); // also copy other relevant properties from basis success.setRedirect(true); return success; hth, Hubert --- Lucas Halim [EMAIL PROTECTED] wrote: Hi, I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal state exception and I found out that the redirection code causes this exception. ActionForward success = mapping.findForward(success); success.setRedirect(true); I aware that we can set an attribute of redirect=true in the forward tag in config file (struts-config.xml) but what happen if we need to dynamically en/disable the redirection? Thanks in advance. Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration is frozen
Quoting Lucas Halim [EMAIL PROTECTED]: Thanks Hubert. Anybody knows why is it frozen at the first place? Is that just another mod in Struts 1.1? Without freezing the configuration, two bad things would happen: * We'd have to synchronize around all accesses to the HashMap instances inside the configuration beans that are accessed on every request, causing a performance hit. * It would be way too easy for applications to accidentally modify the configured information, and thereby introduce very mysterious and hard to find bugs. Lucas Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with ActionConfig.setInput() - Configuration is Frozen
I am having a problem with the ActionMapping.setInput() which is throwing an illegal state exception and also says that the configuration is frozen. Not sure what is happening but what I am trying to do is set the input attribute dynamically in the action class. If an error occurs it is orwarded to the page which is set thro' the ActionMapping.setInput(). I need this dynamic approach as the action is called thro' a menu which can be on multiple pages. Root cause of ServletException WARN action.RequestProcessor - Unhandled Exception thrown: class java.lang.IllegalStateException java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ActionConfig.setInput(ActionConfig.java: 227) TIA, srinivas _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.lang.IllegalStateException: Configuration is frozen
Hi, in struts1.1, can we call mapping.setInput()? My application throws java.lang.IllegalStateException: Configuration is frozen when I tried to call mapping.setInput() at the end of my validate() in the ActionForm. However, the codes work in struts1.0.2. Thanks in advance! - Do you Yahoo!? Yahoo! News - Today's headlines
RE: java.lang.IllegalStateException: Configuration is frozen
Martin, those are the old codes. I am trying to migrating to struts1.1 without any code changes. So according to what you said, I will have to modify the existing codes then, is it right? Martin Cooper wrote:You can't call ActionMapping.setInput() on a mapping which was read as part of the Struts configuration. Why are you trying to set the 'input' attribute yourself? What are you ultimately trying to do? -- Martin Cooper -Original Message- From: Sharon Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: java.lang.IllegalStateException: Configuration is frozen Hi, in struts1.1, can we call mapping.setInput()? My application throws java.lang.IllegalStateException: Configuration is frozen when I tried to call mapping.setInput() at the end of my validate() in the ActionForm. However, the codes work in struts1.0.2. Thanks in advance! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines
RE: java.lang.IllegalStateException: Configuration is frozen
Yes, you'll have to change your current code. But why did you need to call setInput() in the first place? -- Martin Cooper -Original Message- From: Sharon Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 4:39 PM To: Struts Users Mailing List Subject: RE: java.lang.IllegalStateException: Configuration is frozen Martin, those are the old codes. I am trying to migrating to struts1.1 without any code changes. So according to what you said, I will have to modify the existing codes then, is it right? Martin Cooper wrote:You can't call ActionMapping.setInput() on a mapping which was read as part of the Struts configuration. Why are you trying to set the 'input' attribute yourself? What are you ultimately trying to do? -- Martin Cooper -Original Message- From: Sharon Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: java.lang.IllegalStateException: Configuration is frozen Hi, in struts1.1, can we call mapping.setInput()? My application throws java.lang.IllegalStateException: Configuration is frozen when I tried to call mapping.setInput() at the end of my validate() in the ActionForm. However, the codes work in struts1.0.2. Thanks in advance! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: java.lang.IllegalStateException: Configuration is frozen
It's not my codes, so I don't know why he was doing that! I could only guess he wants to redirect the user back to the page if there's any error. I am trying to uncomment that line and see if anything breaks. Martin Cooper wrote:Yes, you'll have to change your current code. But why did you need to call setInput() in the first place? -- Martin Cooper -Original Message- From: Sharon Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 4:39 PM To: Struts Users Mailing List Subject: RE: java.lang.IllegalStateException: Configuration is frozen Martin, those are the old codes. I am trying to migrating to struts1.1 without any code changes. So according to what you said, I will have to modify the existing codes then, is it right? Martin Cooper wrote:You can't call ActionMapping.setInput() on a mapping which was read as part of the Struts configuration. Why are you trying to set the 'input' attribute yourself? What are you ultimately trying to do? -- Martin Cooper -Original Message- From: Sharon Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: java.lang.IllegalStateException: Configuration is frozen Hi, in struts1.1, can we call mapping.setInput()? My application throws java.lang.IllegalStateException: Configuration is frozen when I tried to call mapping.setInput() at the end of my validate() in the ActionForm. However, the codes work in struts1.0.2. Thanks in advance! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines
Configuration is frozen -what does it mean?
Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. // Ulrika [INFO] RequestProcessor - -Processing a 'GET' for path '/manadsspara/manadssparaForm' [WARN] RequestProcessor - -null [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ForwardConfig.setRedirect (ForwardConfig.java:161) at se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform (ManadssparaAction.java:92) at se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform (ManadssparaFormAction.java:35) at org.apache.struts.action.Action.execute(Action.java:369) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at se.amfpension.internet.servlet.ControlServlet.doGet (ControlServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService (ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service (StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service (StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service (StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service (ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch (ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch (ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch (WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward (WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook (WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation (CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke (CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI (ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service (OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest (HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest (HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuration is frozen -what does it mean?
Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. // Ulrika [INFO] RequestProcessor - -Processing a 'GET' for path '/manadsspara/manadssparaForm' [WARN] RequestProcessor - -null [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ForwardConfig.setRedirect (ForwardConfig.java:161) at se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform (ManadssparaAction.java:92) at se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform (ManadssparaFormAction.java:35) at org.apache.struts.action.Action.execute(Action.java:369) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at se.amfpension.internet.servlet.ControlServlet.doGet (ControlServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService (ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service (StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service (StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service (StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service (ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch (ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch (ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch (WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward (WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook (WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation (CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke (CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI (ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service (OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest (HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest (HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuration is frozen -what does it mean?
Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. // Ulrika [INFO] RequestProcessor - -Processing a 'GET' for path '/manadsspara/manadssparaForm' [WARN] RequestProcessor - -null [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ForwardConfig.setRedirect (ForwardConfig.java:161) at se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform (ManadssparaAction.java:92) at se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform (ManadssparaFormAction.java:35) at org.apache.struts.action.Action.execute(Action.java:369) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at se.amfpension.internet.servlet.ControlServlet.doGet (ControlServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService (ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service (StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service (StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service (StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service (ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch (ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch (ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch (WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward (WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook (WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation (CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke (CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI (ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service (OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest (HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest (HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuration is frozen -what does it mean?
On 13 May 2002 [EMAIL PROTECTED] wrote: Date: 13 May 2002 10:59:21 - From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Configuration is frozen -what does it mean? Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. The configuration is frozen error occurs when you are attempting to modify one of the data structures loaded from struts-config.xml at startup time. Judging from your stack trace, it looks like you're trying to modify the redirect property on an existing ActionForward instance. This is undesireable, because it would affect *all* future uses of that particular forward. The workaround is to make a copy of the ActionForward you looked up, and modify it's properties any way you'd like -- something like: ActionForward oldForward = mapping.findForward(foo); ActionForward newForward = new ActionForward(); newForward.setName(oldForward.getName()); newForward.setPath(oldForward.getPath()); newForward.setRedirect(true); // Ulrika Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuration is frozen -what does it mean?
Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. // Ulrika [INFO] RequestProcessor - -Processing a 'GET' for path '/manadsspara/manadssparaForm' [WARN] RequestProcessor - -null [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ForwardConfig.setRedirect (ForwardConfig.java:161) at se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform (ManadssparaAction.java:92) at se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform (ManadssparaFormAction.java:35) at org.apache.struts.action.Action.execute(Action.java:369) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at se.amfpension.internet.servlet.ControlServlet.doGet (ControlServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService (ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service (StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service (StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service (StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service (ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch (ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch (ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch (WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward (WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook (WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation (CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke (CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI (ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service (OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest (HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest (HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Configuration is frozen -what does it mean?
In the ManadssparaAction, you're trying to modify a ForwardConfig-Object. These configuration objects are meant to be initialized at servlet startup time, i.e. by reading the configuration data from struts-config.xml. You are not allowed to modify them afterwards. Björn -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Montag, 13. Mai 2002 12:59 An: [EMAIL PROTECTED] Betreff: Configuration is frozen -what does it mean? Hi! I often get an error messaget that says that the configuration is frozen. (See the error message below). I don't understand why I get this error and restarting the server does not help. I really need some help with this problem, thanks. // Ulrika [INFO] RequestProcessor - -Processing a 'GET' for path '/manadsspara/manadssparaForm' [WARN] RequestProcessor - -null [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup X Servlet Error: Configuration is frozen: java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ForwardConfig.setRedirect (ForwardConfig.java:161) at se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform (ManadssparaAction.java:92) at se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform (ManadssparaFormAction.java:35) at org.apache.struts.action.Action.execute(Action.java:369) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at se.amfpension.internet.servlet.ControlServlet.doGet (ControlServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService (ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service (StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service (StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service (StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service (ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch (ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch (ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch (WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch (WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward (WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook (WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation (CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke (CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI (ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service (OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest (HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest (HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]