Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1262

Log4jServletContextListener unnecessary exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Web/Servlet
    • None

    Description

      Log4jServletContextListener.contextDestroyed throws an IllegalStateException if contextInitialized was never called. In certain rare situations where a server startup fails due to previous errors this Exception is unnecessary.
      So I suggest to now throw an Exception and instead log it as a warning and end the method gracefully.

      Attachments

        Activity

          People

            mattsicker Matt Sicker
            phax Philip Helger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: