logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Brown <Matt.Br...@citrixOnline.com>
Subject RE: Log4j exception Could not close org.apache.log4j.helpers.CountingQuietWriter
Date Fri, 24 Apr 2009 15:10:09 GMT
Can you share your log4j configuration? 

-----Original Message-----
From: ramakrishna menon [mailto:rmenon.us@gmail.com] 
Sent: Friday, April 24, 2009 11:08 AM
To: log4j-user@logging.apache.org
Subject: Log4j exception Could not close org.apache.log4j.helpers.CountingQuietWriter

Hi I have a web application installed on a single tomcat instance.

After around 2 to 5 days of running, the entire application stalls. When checking the log,
I get the following error stack. I did some research on this on google but could not find
any solution. What can I do to avoid this situation? A tomcat bounce typically resolves the
situation temporarily.

Thank you!
Menon
Apr 23, 2009 11:40:40 PM org.apache.catalina.core.StandardWrapperValve
invoke
INFO: log4j:ERROR Could not close
org.apache.log4j.helpers.CountingQuietWriter@11361f82
java.io.IOException: Input/output error
        at java.io.FileOutputStream.close0(Native Method)
        at java.io.FileOutputStream.close(FileOutputStream.java:279)
        at
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
        at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
        at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
        at java.io.FilterWriter.close(FilterWriter.java:92)
        at org.apache.log4j.FileAppender.closeFile(FileAppender.java:183)
        at
org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.java:146)
        at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:239)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
        at org.apache.log4j.Category.callAppenders(Category.java:203)
        at org.apache.log4j.Category.forcedLog(Category.java:388)
        at org.apache.log4j.Category.debug(Category.java:257)
        at
com.opinmind.db.DbUtil.executeDbProcAffectingRows(DbUtil.java:244)
        at
com.opinmind.webapp.exporter.AbstractExporter.logExtractorStats(AbstractExporter.java:139)
        at
com.opinmind.webapp.exporter.ExporterAssumingClientOnDbImpl.generateFile(ExporterAssumingClientOnDbImpl.java:138)
        at
com.opinmind.webapp.etl.extractor.DbDataExporter.getFiles(DbDataExporter.java:65)
        at
com.opinmind.webapp.etl.extractor.action.ExtractDbDataIntoFileAction.doExecute(ExtractDbDataIntoFileAction.java:71)
        at com.opinmind.webapp.action.BaseAction.execute(BaseAction.java:50)
        at
org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
        at
org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
        at
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
        at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)

-----------------------------------------------------------
R. M. Menon - A Rafi fan(www.mohdrafi.com) Author, Expert Oracle JDBC Programming, http://www.amazon.com/exec/obidos/tg/detail/-/159059407X/
-----------------------------------------------------------
-----------------------------------------------------------
R. M. Menon - A Rafi fan(www.mohdrafi.com) Author, Expert Oracle JDBC Programming, http://www.amazon.com/exec/obidos/tg/detail/-/159059407X/
-----------------------------------------------------------

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


Mime
View raw message