logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: ERROR Failed to flush writer, java.io.InterruptedIOException
Date Fri, 02 Jan 2009 18:10:22 GMT
Does this happen ever single time your log line is called or just sporadically?
You point out that you have enough disk space, but are you running Java with a
user having write permissions?  Is the log file actually being created?

Jake

On 1/2/2009 9:25 AM, laredotornado wrote:
> Hi,
> 
> I'm running Java 1.5 on Weblogic 9.2.2 (Solaris 9) and using log4j 1.2.15. 
> During the execution of my program, I'm getting this error ...
> 
> log4j:ERROR Failed to flush writer,
> java.io.InterruptedIOException
>         at java.io.FileOutputStream.writeBytes(Native Method)
>         at java.io.FileOutputStream.write(FileOutputStream.java:260)
>         at
> sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
>         at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
>         at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
>         at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
>         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
>         at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:57)
>         at
> org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:315)
>         at
> org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:358)
>         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.myco.safariview.cedarpoint.connector.CPThreadedLogin.run(CPThreadedLogin.java:119)
> 
> It is happening on this line:
> 
> log.debug(this.cpSwitchAttributes.getCLLI() + " exiting id=" + createTime);
> 
> Per a suggestion I read online, I checked to see if I have enough disk
> space, and it appears I do ...
> 
> 
> orma3% df /
> /                  (/dev/vx/dsk/bootdg/rootvol): 1587550 blocks   253027
> files
> 
> 
> Any other ideas on how to troubleshoot this problem?  Thanks, - Dave
> 

---------------------------------------------------------------------
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