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

Log4jServletContextListener unnecessary exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Web/Servlet
    • Labels:
      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

            • Assignee:
              jvz Matt Sicker
              Reporter:
              phax Philip Helger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: