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

Log4j fails to initialize with Log4j-spring-cloud-config in Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.14.0
    • 2.14.1
    • API
    • None

    Description

      During initialization Log4j tries to access properties. If Log4j's Spring support is present it will try to access Spring's environment. In order to do that it tries to check if LogManager's factory has been initialized. That will run the static block in LogManager which then gets a NullPointerException in a method it calls. 

      To address this Log4j's Spring environment lookup needs to be able to determine that one isn't available yet without accessing LogManager.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: