cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Triggs (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-2303) ThreadLocal in Sitemap EnvironmentHelper leaks on application undeployment
Date Wed, 13 Oct 2010 19:55:33 GMT

     [ 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.


Mime
View raw message