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

IOException: Stream Closed RollingRandomAccessFile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: 2.1
    • Component/s: Appenders
    • Labels:
    • Environment:

      Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

      Description

      After some time, RollingRandomAccessFile can no longer write logging events (have not run out of disk space).

      2014-05-13 10:05:18,284 ERROR Unable to write to stream logs/CALEEBaskets.log for appender RollingRandomAccessFile
      2014-05-13 10:05:18,284 ERROR An exception occurred processing Appender RollingRandomAccessFile org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing to RandomAccessFile logs/CALEEBaskets.log
      	at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.flush(RollingRandomAccessFileManager.java:109)
      	at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.write(RollingRandomAccessFileManager.java:90)
      	at org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:129)
      	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:120)
      	at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender.append(RollingRandomAccessFileAppender.java:96)
      	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:97)
      	at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:425)
      	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)
      	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:367)
      	at org.apache.logging.log4j.core.Logger.log(Logger.java:112)
      	at org.apache.logging.log4j.spi.AbstractLogger.debug(AbstractLogger.java:338)
      	at com.corticalSystems.CALEE.algorithms.baskets.persistence.orderLogging.OrderLoggingDAL.createNewOrder(OrderLoggingDAL.java:163)
      	at com.corticalSystems.CALEE.algorithms.baskets.logic.ConstituentLogicThread.sendNewOrder(ConstituentLogicThread.java:1087)
      	at com.corticalSystems.CALEE.algorithms.baskets.logic.ConstituentLogicThread.run(ConstituentLogicThread.java:1587)
      	at java.lang.Thread.run(Thread.java:744)
      Caused by: java.io.IOException: Stream Closed
      	at java.io.RandomAccessFile.writeBytes0(Native Method)
      	at java.io.RandomAccessFile.writeBytes(RandomAccessFile.java:520)
      	at java.io.RandomAccessFile.write(RandomAccessFile.java:550)
      	at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.flush(RollingRandomAccessFileManager.java:106)
      	... 14 more
      

        Attachments

          Activity

            People

            • Assignee:
              rpopma Remko Popma
              Reporter:
              AdrianWilford Adrian Wilford
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: