You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Eduardo Issao Ito <ed...@yahoo.com> on 2002/10/11 14:03:50 UTC

ERROR in log4j 1.2.6

I am using Log4j 1.2.6 in a multithreaded program, and it gave me
the exception below a couple of times.

My configuration is:
Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
SunOS cs0000ux034 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise-10000

Someone knows what is the problem?


log4j:ERROR Failed to flush writer,
java.io.InterruptedIOException: Interrupted system call
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.writeBytes(Compiled Code)
        at java.io.FileOutputStream.write(Compiled Code)
        at java.io.OutputStreamWriter.flushBuffer(Compiled Code)
        at java.io.OutputStreamWriter.flush(Compiled Code)
        at org.apache.log4j.helpers.QuietWriter.flush(Compiled Code)
        at org.apache.log4j.WriterAppender.subAppend(Compiled Code)
        at org.apache.log4j.DailyRollingFileAppender.subAppend(Compiled Code)
        at org.apache.log4j.WriterAppender.append(Compiled Code)
        at org.apache.log4j.AppenderSkeleton.doAppend(Compiled Code)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Compiled Code)
        at org.apache.log4j.Category.callAppenders(Compiled Code)
        at org.apache.log4j.Category.forcedLog(Compiled Code)
        at org.apache.log4j.Category.debug(Compiled Code)


-- 
<Eduardo Issao Ito/>
<Summa Technologies/>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ERROR in log4j 1.2.6

Posted by Tom Kasikci <to...@xmlglobal.com>.
----- Original Message -----
From: "Eduardo Issao Ito" <ed...@yahoo.com>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Friday, October 11, 2002 8:34 PM
Subject: Re: ERROR in log4j 1.2.6


>
> Yes. Is it unsafe to be used, or only with log4j?
>
> But I've made some changes to the program and the error didn't appeared
anymore (still using interrupt).
>
>
> Ceki Gülcü wrote:
> >
> > Are you using Thread.interrupt to kill your threads?
> >
> > At 09:03 11.10.2002 -0300, you wrote:
> >
> >> I am using Log4j 1.2.6 in a multithreaded program, and it gave me
> >> the exception below a couple of times.
> >>
> >> My configuration is:
> >> Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
> >> SunOS cs0000ux034 5.8 Generic_108528-15 sun4u sparc
> >> SUNW,Ultra-Enterprise-10000
> >>
> >> Someone knows what is the problem?
> >>
> >>
> >> log4j:ERROR Failed to flush writer,
> >> java.io.InterruptedIOException: Interrupted system call
> >>        at java.io.FileOutputStream.writeBytes(Native Method)
> >>        at java.io.FileOutputStream.writeBytes(Compiled Code)
> >>        at java.io.FileOutputStream.write(Compiled Code)
> >>        at java.io.OutputStreamWriter.flushBuffer(Compiled Code)
> >>        at java.io.OutputStreamWriter.flush(Compiled Code)
> >>        at org.apache.log4j.helpers.QuietWriter.flush(Compiled Code)
> >>        at org.apache.log4j.WriterAppender.subAppend(Compiled Code)
> >>        at org.apache.log4j.DailyRollingFileAppender.subAppend(Compiled
> >> Code)
> >>        at org.apache.log4j.WriterAppender.append(Compiled Code)
> >>        at org.apache.log4j.AppenderSkeleton.doAppend(Compiled Code)
> >>        at
> >>
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Compil
ed
> >> Code)
> >>        at org.apache.log4j.Category.callAppenders(Compiled Code)
> >>        at org.apache.log4j.Category.forcedLog(Compiled Code)
> >>        at org.apache.log4j.Category.debug(Compiled Code)
> >>
> >>
> >> --
> >> <Eduardo Issao Ito/>
> >> <Summa Technologies/>
> >
> >
> > --
> > Ceki
> >
> > TCP implementations will follow a general principle of robustness: be
> > conservative in what you do, be liberal in what you accept from
> > others. -- Jon Postel, RFC 793
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> --
> <Eduardo Issao Ito/>
> <Summa Technologies/>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ERROR in log4j 1.2.6

Posted by Eduardo Issao Ito <ed...@yahoo.com>.
Yes. Is it unsafe to be used, or only with log4j?

But I've made some changes to the program and the error didn't appeared anymore (still using interrupt).


Ceki Gülcü wrote:
> 
> Are you using Thread.interrupt to kill your threads?
> 
> At 09:03 11.10.2002 -0300, you wrote:
> 
>> I am using Log4j 1.2.6 in a multithreaded program, and it gave me
>> the exception below a couple of times.
>>
>> My configuration is:
>> Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
>> SunOS cs0000ux034 5.8 Generic_108528-15 sun4u sparc 
>> SUNW,Ultra-Enterprise-10000
>>
>> Someone knows what is the problem?
>>
>>
>> log4j:ERROR Failed to flush writer,
>> java.io.InterruptedIOException: Interrupted system call
>>        at java.io.FileOutputStream.writeBytes(Native Method)
>>        at java.io.FileOutputStream.writeBytes(Compiled Code)
>>        at java.io.FileOutputStream.write(Compiled Code)
>>        at java.io.OutputStreamWriter.flushBuffer(Compiled Code)
>>        at java.io.OutputStreamWriter.flush(Compiled Code)
>>        at org.apache.log4j.helpers.QuietWriter.flush(Compiled Code)
>>        at org.apache.log4j.WriterAppender.subAppend(Compiled Code)
>>        at org.apache.log4j.DailyRollingFileAppender.subAppend(Compiled 
>> Code)
>>        at org.apache.log4j.WriterAppender.append(Compiled Code)
>>        at org.apache.log4j.AppenderSkeleton.doAppend(Compiled Code)
>>        at 
>> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Compiled 
>> Code)
>>        at org.apache.log4j.Category.callAppenders(Compiled Code)
>>        at org.apache.log4j.Category.forcedLog(Compiled Code)
>>        at org.apache.log4j.Category.debug(Compiled Code)
>>
>>
>> -- 
>> <Eduardo Issao Ito/>
>> <Summa Technologies/>
> 
> 
> -- 
> Ceki
> 
> TCP implementations will follow a general principle of robustness: be
> conservative in what you do, be liberal in what you accept from
> others. -- Jon Postel, RFC 793
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 


-- 
<Eduardo Issao Ito/>
<Summa Technologies/>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ERROR in log4j 1.2.6

Posted by Ceki Gülcü <ce...@qos.ch>.
Are you using Thread.interrupt to kill your threads?

At 09:03 11.10.2002 -0300, you wrote:

>I am using Log4j 1.2.6 in a multithreaded program, and it gave me
>the exception below a couple of times.
>
>My configuration is:
>Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
>SunOS cs0000ux034 5.8 Generic_108528-15 sun4u sparc 
>SUNW,Ultra-Enterprise-10000
>
>Someone knows what is the problem?
>
>
>log4j:ERROR Failed to flush writer,
>java.io.InterruptedIOException: Interrupted system call
>        at java.io.FileOutputStream.writeBytes(Native Method)
>        at java.io.FileOutputStream.writeBytes(Compiled Code)
>        at java.io.FileOutputStream.write(Compiled Code)
>        at java.io.OutputStreamWriter.flushBuffer(Compiled Code)
>        at java.io.OutputStreamWriter.flush(Compiled Code)
>        at org.apache.log4j.helpers.QuietWriter.flush(Compiled Code)
>        at org.apache.log4j.WriterAppender.subAppend(Compiled Code)
>        at org.apache.log4j.DailyRollingFileAppender.subAppend(Compiled Code)
>        at org.apache.log4j.WriterAppender.append(Compiled Code)
>        at org.apache.log4j.AppenderSkeleton.doAppend(Compiled Code)
>        at 
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Compiled 
> Code)
>        at org.apache.log4j.Category.callAppenders(Compiled Code)
>        at org.apache.log4j.Category.forcedLog(Compiled Code)
>        at org.apache.log4j.Category.debug(Compiled Code)
>
>
>--
><Eduardo Issao Ito/>
><Summa Technologies/>

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>