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

setting the log level to debug throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • None
    • None
    • Operating System: All
      Platform: All

    • 22131

    Description

      Using Log4J:
      set the log4j.rootCategory=DEBUG

      Use SetProperties rule
      get NPE on calling digester.parse()
      at following line:
      org.apache.commons.digester.SetPropertiesRule.begin(SetPrpertiesRule.java:256)

      This is becuase the code within log.isDebugEnabled()

      {...}

      uses top.getClass()... but 'top' can also be null becuase it peeked from
      digester

      Attachments

        Activity

          People

            Unassigned Unassigned
            r1akhil@in.ibm.com r1akhil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: