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

ContextDetachingSCL throws NPE when LoggerContext has not been initialized

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.0.11
    • logback-classic
    • None

    Description

      When using ContextSelector=JNDI with a ContextDetachingSCL in Tomcat, if the ContextSelectorStaticBinder has not been initialized, a NullPointerException is thrown when ContextDetachingSCL.contextDestroyed() is called.

      This does not happen when the ContextSelectorStaticBinder is initialized.

      See both stacktraces in attachments.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            xdury Xavier Dury
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: