You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ashwin kumar (JIRA)" <ji...@apache.org> on 2010/06/11 15:58:13 UTC
[jira] Created: (DIGESTER-140) Change the
getClass().getClassLoader() to
Thread.currentThread().getContextClassLoader()
Change the getClass().getClassLoader() to Thread.currentThread().getContextClassLoader()
----------------------------------------------------------------------------------------
Key: DIGESTER-140
URL: https://issues.apache.org/jira/browse/DIGESTER-140
Project: Commons Digester
Issue Type: Bug
Affects Versions: 2.0
Environment: Apache Tomcat 5.5.9 ,
Reporter: ashwin kumar
When i use Digester from Java Agent Few pieces of code which uses
getClass().getClassLoader() returns me null. As Digester is loaded by system classlaoder it happens so
Fix : using following code "Thread.currentThread().getContextClassLoader()" shal fix that
Locations to Fix :
ClassName :org.apache.commons.digester.SetNextRule
Method : end()
Line Number: 204
ClassName :org.apache.commons.digester.xmlrules.FromXmlRuleSet
Method : addRuleInstances()
Line Number: 164
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.