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

StackOverflowError at AwaitCompletionReliabilityStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8.2, 2.9.1, 2.11.1
    • 3.0.0, 2.11.2
    • Core
    • None
    • not important

    Description

      Hi, I have a need to change the configuration of log4j2 programatically after automatic configuration following the instructions at https://logging.apache.org/log4j/2.x/manual/customconfig.html.

      To fullfill my requirements I need to stop the context and restart it with my proper config, when I do this and try to write a log the AwaitCompletionReliabilityStrategy enters in a bucle and throws a Stackoverflow exception.

      I've developed a Unit test that recreates the problem.

      Edit: attached test files.

      Attachments

        1. log4j2.yml
          0.3 kB
          David del Amo Mateos
        2. Log4j2RefreshTest.java
          2 kB
          David del Amo Mateos

        Activity

          People

            ggregory Gary D. Gregory
            david.delamo David del Amo Mateos
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m