[Actionframework-users] bug: request components and changed action config
Status: Inactive
Brought to you by:
ptoman
From: Mark D. A. <md...@di...> - 2002-09-23 06:06:21
|
If I turn on reloadActionConfig and if I have "request" level components, then I get this when I change the action config file and reload a page: java.lang.IllegalStateException: Cannot get component with "request" persistence from non-servlet thread at org.actionframework.ActionRuntime.getComponent(ActionRuntime.java:1448) at org.actionframework.ActionServlet.getComponent(ActionServlet.java:737) at org.actionframework.ActionServlet.processRequest(ActionServlet.java:532) at org.actionframework.ActionServlet.handle(ActionServlet.java:359) This is presumably because ActionServlet stores session ids in runtime.threadSessions, and the actionConfigFile change handling is implemented by replacing runtime by newRuntime. A fix would be to either copy over more state (such as threadSessions) between the two, or to modify the existing runtime instance instead of replacing it. -mda |