Commons Digester
  1. Commons Digester
  2. DIGESTER-66

setting the log level to debug throws NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      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

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Resolved Resolved Closed Closed
        1312d 1h 17m 1 Henri Yandell 09/Mar/07 20:39
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Affects Version/s 1.5 Final [ 12311691 ]
        Henri Yandell made changes -
        Component/s Digester [ 12311111 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Key COM-738 DIGESTER-66
        Affects Version/s 1.5 Final [ 12311664 ]
        Project Commons [ 12310458 ] Commons Digester [ 12310471 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 22131 12340889
        Hide
        Craig McClanahan added a comment -

        Fixed in nightly build 20030817.

        Show
        Craig McClanahan added a comment - Fixed in nightly build 20030817.
        r1akhil created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            r1akhil
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development