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

[logging] null pointer exception in LogFactory.getLog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.1.0
    • None
    • Operating System: Mac OS X 10.3
      Platform: Macintosh

    • 33221

    Description

      In running the LoggingTrial example from the book "Pro Jakarta Commons" by Oak from Apress on
      MacOSX 10.3.7, java version "1.4.2_05-141.3", I get the following error:

      run_example:
      [java] Exception in thread "main" org.apache.commons.logging.LogConfigurationException:
      org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by
      java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException:
      java.lang.NullPointerException (Caused by java.lang.NullPointerException))
      [java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
      [java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      [java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
      [java] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
      [java] at com.commonsbook.chap3.LoggingTrial.main(LoggingTrial.java:8)
      [java] Caused by: org.apache.commons.logging.LogConfigurationException:
      java.lang.NullPointerException (Caused by java.lang.NullPointerException)
      [java] at
      org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
      [java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      [java] ... 4 more
      [java] Caused by: java.lang.NullPointerException
      [java] at
      org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
      [java] ... 5 more

      Up to this point everything in the book worked. I doubt user error. MacOSX java implementation?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dhuebsch@mac.com Donald Huebschman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: