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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Environment:

      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

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              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