You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Graham Triggs (JIRA)" <ji...@apache.org> on 2010/10/13 21:55:33 UTC

[jira] Updated: (COCOON-2303) ThreadLocal in Sitemap EnvironmentHelper leaks on application undeployment

     [ https://issues.apache.org/jira/browse/COCOON-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Graham Triggs updated COCOON-2303:
----------------------------------

    Attachment: sitemap.diff

> ThreadLocal in Sitemap EnvironmentHelper leaks on application undeployment
> --------------------------------------------------------------------------
>
>                 Key: COCOON-2303
>                 URL: https://issues.apache.org/jira/browse/COCOON-2303
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.2
>            Reporter: Graham Triggs
>         Attachments: sitemap.diff
>
>
> In sitemap-impl, there is a ThreadLocal that is used to store the EnvironmentStack. In the call to leaveProcessor, it pops an EnvironmentInfo off the stack. However, it doesn't clear the ThreadLocal when the stack is emptied. As such, there is a reference left over that can't be cleared normally when the application is undeployed.
> Patch clears the environmentStack ThreadLocal when the stack is empty (it will get recreated anyway in the enterProcessor if it's required later).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.