Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-477

NullPointerException in Logger after container restart

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 0.9.12
    • 0.9.9
    • None
    • None
    • Eclipse 3.4, Java 5, Tomcat 5.5.26, plain JSP (no servlet)

    Description

      Hi,

      loggerContext in the Logger class is null after container restart. This will produce a NPE when trying to further use logback.

      java.lang.NullPointerException
      at ch.qos.logback.classic.Logger.callTurboFilters(Logger.java:775)
      at ch.qos.logback.classic.Logger.isDebugEnabled(Logger.java:630)
      at ch.qos.logback.classic.Logger.isDebugEnabled(Logger.java:613)
      at test.LogbackTest.testLogger(LogbackTest.java:15)

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            manelclos Manel Clos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: