Log4j 2
  1. Log4j 2
  2. LOG4J2-392

Intermittent errors with appenders

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta8, 2.0-beta9
    • Fix Version/s: 2.0-rc2, 2.1
    • Component/s: Appenders
    • Labels:
      None
    • Environment:

      Windows 7 SP1 64bit

      Description

      I intermittently receive following errors after upgrading to beta 8. EVERYTHING was working well with beta 6:

      • 1st error (happens most frequently)
        2013-09-05 10:48:37,722 ERROR Attempted to append to non-started appender LogFile
      • 2nd error:
        2013-09-05 10:49:38,268 ERROR Attempted to append to non-started appender LogFile
        2013-09-05 10:49:38,268 ERROR Unable to write to stream log/ui-selenium-tests.log for appender LogFile
        2013-09-05 10:49:38,269 ERROR An exception occurred processing Appender LogFile org.apache.logging.log4j.core.appender.AppenderRuntimeException: Error writing to RandomAccessFile log/ui-selenium-tests.log
        at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:108)
        at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.write(FastRollingFileManager.java:89)
        at org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:129)
        at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:115)
        at org.apache.logging.log4j.core.appender.FastRollingFileAppender.append(FastRollingFileAppender.java:97)
        at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:102)
        at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:228)
        Caused by: java.io.IOException: Write error
        at java.io.RandomAccessFile.writeBytes(Native Method)
        at java.io.RandomAccessFile.write(Unknown Source)
        at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:105)
        ... 6 more
      1. AppenderOverwhelmer.java
        0.3 kB
        Andre Bogus
      2. log4j2.xml
        3 kB
        ilynaf
      3. Log4J2.zip
        4.18 MB
        ilynaf

        Issue Links

          Activity

          Remko Popma made changes -
          Link This issue is superceded by LOG4J2-807 [ LOG4J2-807 ]
          Remko Popma made changes -
          Link This issue is duplicated by LOG4J2-672 [ LOG4J2-672 ]
          Remko Popma made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Remko Popma made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Remko Popma made changes -
          Link This issue breaks LOG4J2-539 [ LOG4J2-539 ]
          Remko Popma made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 2.0-rc2 [ 12326292 ]
          Fix Version/s 2.1 [ 12326822 ]
          Fix Version/s 2.0-rc1 [ 12325011 ]
          Resolution Fixed [ 1 ]
          Remko Popma made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Remko Popma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0-rc1 [ 12325011 ]
          Resolution Fixed [ 1 ]
          Remko Popma made changes -
          Link This issue is duplicated by LOG4J2-511 [ LOG4J2-511 ]
          Remko Popma made changes -
          Assignee Remko Popma [ remkop@yahoo.com ]
          Andre Bogus made changes -
          Comment [ This is a small program that just logs 100000 messages and then exits normally. Using log4j2.0beta9, this logs an ERROR Attempted to append to non-started appender [...] ]
          Andre Bogus made changes -
          Attachment AppenderOverwhelmer.java [ 12615810 ]
          ilynaf made changes -
          Comment [ Reproduction Java project ]
          ilynaf made changes -
          Attachment Log4J2.zip [ 12611934 ]
          Remko Popma made changes -
          Affects Version/s 2.0-beta9 [ 12324756 ]
          ilynaf made changes -
          Description I intermittently receive following errors after upgrading to beta 8. EVERYTHING was working well with beta 6:
          * 1st error:
          2013-09-05 10:48:37,722 ERROR Attempted to append to non-started appender LogFile

          * 2nd error:
          2013-09-05 10:49:38,268 ERROR Attempted to append to non-started appender LogFile
          2013-09-05 10:49:38,268 ERROR Unable to write to stream log/ui-selenium-tests.log for appender LogFile
          2013-09-05 10:49:38,269 ERROR An exception occurred processing Appender LogFile org.apache.logging.log4j.core.appender.AppenderRuntimeException: Error writing to RandomAccessFile log/ui-selenium-tests.log
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:108)
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.write(FastRollingFileManager.java:89)
          at org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:129)
          at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:115)
          at org.apache.logging.log4j.core.appender.FastRollingFileAppender.append(FastRollingFileAppender.java:97)
          at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:102)
          at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:228)
          Caused by: java.io.IOException: Write error
          at java.io.RandomAccessFile.writeBytes(Native Method)
          at java.io.RandomAccessFile.write(Unknown Source)
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:105)
          ... 6 more
          I intermittently receive following errors after upgrading to beta 8. EVERYTHING was working well with beta 6:
          * 1st error (happens most frequently)
          2013-09-05 10:48:37,722 ERROR Attempted to append to non-started appender LogFile

          * 2nd error:
          2013-09-05 10:49:38,268 ERROR Attempted to append to non-started appender LogFile
          2013-09-05 10:49:38,268 ERROR Unable to write to stream log/ui-selenium-tests.log for appender LogFile
          2013-09-05 10:49:38,269 ERROR An exception occurred processing Appender LogFile org.apache.logging.log4j.core.appender.AppenderRuntimeException: Error writing to RandomAccessFile log/ui-selenium-tests.log
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:108)
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.write(FastRollingFileManager.java:89)
          at org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:129)
          at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:115)
          at org.apache.logging.log4j.core.appender.FastRollingFileAppender.append(FastRollingFileAppender.java:97)
          at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:102)
          at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:228)
          Caused by: java.io.IOException: Write error
          at java.io.RandomAccessFile.writeBytes(Native Method)
          at java.io.RandomAccessFile.write(Unknown Source)
          at org.apache.logging.log4j.core.appender.rolling.FastRollingFileManager.flush(FastRollingFileManager.java:105)
          ... 6 more
          ilynaf made changes -
          Comment [ Log4j2 Configuration ]
          ilynaf made changes -
          Attachment log4j2.xml [ 12601556 ]
          ilynaf made changes -
          Field Original Value New Value
          Summary Intermittent error Intermittent errors with appenders
          ilynaf created issue -

            People

            • Assignee:
              Remko Popma
              Reporter:
              ilynaf
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development