Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-140

Change the getClass().getClassLoader() to Thread.currentThread().getContextClassLoader()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0
    • 3.0
    • Apache Tomcat 5.5.9 ,

    Description

      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

      Attachments

        Activity

          People

            simone.tripodi Simone Tripodi
            ashwin@linkwithweb.com ashwin kumar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified