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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.0
    • Fix Version/s: 2.14.1
    • Component/s: API
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              rgoers Ralph Goers

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment