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

Paul Lindner resolved SHINDIG-1132.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1-BETA5

patch applied


> ClassLoader memory leak caused by XmlUtil ThreadLocal
> -----------------------------------------------------
>
>                 Key: SHINDIG-1132
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1132
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.0
>         Environment: When trying to unload the ClassLoader that loaded 
> Shindig, for instance in an OSGi environment
>            Reporter: Jed Wesley-Smith
>             Fix For: 1.1-BETA5
>
>
> The class org.apache.shindig.common.xml.XmlUtil caches a 
> javax.xml.parsers.DocumentBuilder in the ThreadLocal reusableBuilder 
> variable. These instances are created with the static ErrorHandler instance 
> which creates the strong reference to the XmlUtil class that prevents the 
> ClassLoader from being reclaimed.
> Currently the only way to turn off this behaviour is for 
> DocumentBuilder.reset() to throw an exception.
> We need a way to turn off this caching. Maybe the caching aspect could be 
> injected via Guice?

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

Reply via email to