Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-42

[logging] setUpHandlers leaves handlers null pointer

    XMLWordPrintableJSON

Details

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

    • 34792

    Description

      These errors occur because the "handler" field is null -

      [...]
      [java] There were 3 errors:
      [java] 1)
      testSerializable(org.apache.commons.logging.jdk14.CustomConfigTestCase)java.lang.NullPointerException
      [java] at
      org.apache.commons.logging.jdk14.CustomConfigTestCase.checkLogRecords
      (CustomConfigTestCase.java:215)
      [java] at
      org.apache.commons.logging.jdk14.CustomConfigTestCase.testExceptionMessages
      (CustomConfigTestCase.java:139)
      [java] at
      org.apache.commons.logging.jdk14.CustomConfigTestCase.testSerializable
      (CustomConfigTestCase.java:186)
      [java] at java.lang.reflect.Method.invoke0 (Method.java)
      [java] at java.lang.reflect.Method.invoke (Method.java:255)
      [...]

      The "handler" field is probably null due to an error in gnu classpath

      Anyway, a ClassCastException in setUpHandlers is probably more helpful than
      NullPointerExceptions in checkLogRecords -
      http://www.sfu.ca/~jdbates/tmp/commons-logging/patch

      Thanks for your work on these terrific tools!

      Jack

      Attachments

        Activity

          People

            skitching Simon Kitching
            ms419@freezone.co.uk ms419
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: