Commons Logging
  1. Commons Logging
  2. LOGGING-58

[logging] null pointer exception in LogFactory.getLog

    Details

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

      Operating System: Mac OS X 10.3
      Platform: Macintosh

      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?

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development