You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rickard Öberg (JIRA)" <ji...@apache.org> on 2006/12/06 15:59:57 UTC

[jira] Created: (WW-1543) RequestContextImpl is not cleaned up on undeploy

RequestContextImpl is not cleaned up on undeploy
------------------------------------------------

                 Key: WW-1543
                 URL: http://issues.apache.org/struts/browse/WW-1543
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.1
            Reporter: Rickard Öberg


RequestContextImpl maintains a threadlocal with a reference to a context. Since the value is an array of type RequestContextImpl and the threadlocal is never cleared on undeploy of the application the application as a whole cannot be redeployed.

Either add logic to clear this threadlocal, or change the type of the array to Object[], which should allow the RequestContextImpl class to be GC'ed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (WW-1543) RequestContextImpl is not cleaned up on undeploy

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1543?page=all ]

Don Brown updated WW-1543:
--------------------------

    Component/s: API

Bob?

> RequestContextImpl is not cleaned up on undeploy
> ------------------------------------------------
>
>                 Key: WW-1543
>                 URL: http://issues.apache.org/struts/browse/WW-1543
>             Project: Struts 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.0.1
>            Reporter: Rickard Öberg
>             Fix For: 2.0.3
>
>
> RequestContextImpl maintains a threadlocal with a reference to a context. Since the value is an array of type RequestContextImpl and the threadlocal is never cleared on undeploy of the application the application as a whole cannot be redeployed.
> Either add logic to clear this threadlocal, or change the type of the array to Object[], which should allow the RequestContextImpl class to be GC'ed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (WW-1543) RequestContextImpl is not cleaned up on undeploy

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1543?page=all ]

Don Brown updated WW-1543:
--------------------------

    Fix Version/s: 2.0.3

> RequestContextImpl is not cleaned up on undeploy
> ------------------------------------------------
>
>                 Key: WW-1543
>                 URL: http://issues.apache.org/struts/browse/WW-1543
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Rickard Öberg
>             Fix For: 2.0.3
>
>
> RequestContextImpl maintains a threadlocal with a reference to a context. Since the value is an array of type RequestContextImpl and the threadlocal is never cleared on undeploy of the application the application as a whole cannot be redeployed.
> Either add logic to clear this threadlocal, or change the type of the array to Object[], which should allow the RequestContextImpl class to be GC'ed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Resolved: (WW-1543) RequestContextImpl is not cleaned up on undeploy

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-1543.
---------------------------

    Resolution: Fixed
      Assignee: Don Brown

Temporarily resolved this by changing the threadlocal to an Object array.  Bob, when he gets some time, will probably want to review this when he finishes the api impl.

> RequestContextImpl is not cleaned up on undeploy
> ------------------------------------------------
>
>                 Key: WW-1543
>                 URL: http://issues.apache.org/struts/browse/WW-1543
>             Project: Struts 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.0.1
>            Reporter: Rickard Öberg
>         Assigned To: Don Brown
>             Fix For: 2.0.3
>
>
> RequestContextImpl maintains a threadlocal with a reference to a context. Since the value is an array of type RequestContextImpl and the threadlocal is never cleared on undeploy of the application the application as a whole cannot be redeployed.
> Either add logic to clear this threadlocal, or change the type of the array to Object[], which should allow the RequestContextImpl class to be GC'ed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira