logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Dobrinin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-636) IOException: Stream Closed RollingRandomAccessFile
Date Wed, 15 Apr 2015 17:05:59 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14496520#comment-14496520
] 

Mikhail Dobrinin commented on LOG4J2-636:
-----------------------------------------

This can happen if an asynchronous logger has logged some messages and they are still in the
disruptor after the appender is closed.

> IOException: Stream Closed RollingRandomAccessFile
> --------------------------------------------------
>
>                 Key: LOG4J2-636
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-636
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0-rc1
>         Environment: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
>            Reporter: Adrian Wilford
>            Assignee: Remko Popma
>              Labels: Rollover
>             Fix For: 2.1
>
>
> After some time, RollingRandomAccessFile can no longer write logging events (have not
run out of disk space).
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message