You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dain Sundstrom <ds...@gluecode.com> on 2004/11/02 18:54:48 UTC
IOException: Bad file descriptor
Anyone know why we get the this exception from the tests? It is not a
test failure but happens in the same spot every time on OS X.
-dain
[junit] Running org.apache.geronimo.security.jaas.LoginSQLTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 24.097
sec
[junit] log4j:ERROR Failed to flush writer,
[junit] java.io.IOException: Bad file descriptor
[junit] at java.io.FileOutputStream.writeBytes(Native Method)
[junit] at
java.io.FileOutputStream.write(FileOutputStream.java:260)
[junit] at
sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
[junit] at
sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:
404)
[junit] at
sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
[junit] at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
[junit] at
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
[junit] at
org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:49)
[junit] at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:306)
[junit] at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:
225)
[junit] at
org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
[junit] at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
[junit] at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Ap
penderAttachableImpl.java:57)
[junit] at
org.apache.log4j.Category.callAppenders(Category.java:187)
[junit] at org.apache.log4j.Category.forcedLog(Category.java:372)
[junit] at org.apache.log4j.Category.log(Category.java:864)
[junit] at
org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:152)
[junit] at
org.apache.geronimo.remoting.router.SubsystemRouter.doStart(SubsystemRou
ter.java:61)
[junit] at
org.apache.geronimo.remoting.transport.async.Registry.getServerForClient
Request(Registry.java:146)
[junit] at
org.apache.geronimo.remoting.transport.async.AsyncClient.sendRequest(Asy
ncClient.java:52)
[junit] at
org.apache.geronimo.remoting.transport.RemoteTransportInterceptor.invoke
(RemoteTransportInterceptor.java:63)
[junit] at
org.apache.geronimo.remoting.MarshalingInterceptor.invoke(MarshalingInte
rceptor.java:47)
[junit] at
org.apache.geronimo.remoting.jmx.NotificationRemoterInterceptor.invoke(N
otificationRemoterInterceptor.java:62)
[junit] at
org.apache.geronimo.proxy.SimpleRPCContainer.invoke(SimpleRPCContainer.j
ava:50)
[junit] at
org.apache.geronimo.proxy.ProxyContainer.invoke(ProxyContainer.java:51)
[junit] at $Proxy0.removeLoginModule(Unknown Source)
[junit] at
org.apache.geronimo.security.jaas.RemoteLoginModuleLocalWrapper.finalize
(RemoteLoginModuleLocalWrapper.java:160)
[junit] at java.lang.ref.Finalizer.invokeFinalizeMethod(Native
Method)
[junit] at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
[junit] at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
[junit] at java.lang.ref.Finalizer$3.run(Finalizer.java:148)
[junit] at java.lang.Thread.run(Thread.java:552)
Re: IOException: Bad file descriptor
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Log4j can't write to its log file? That's kind of weird. Do you
know if the log file has reached a size where the "rolling" should kick
in?
Aaron
On Tue, 2 Nov 2004, Dain Sundstrom wrote:
> Anyone know why we get the this exception from the tests? It is not a
> test failure but happens in the same spot every time on OS X.
>
> -dain
>
> [junit] Running org.apache.geronimo.security.jaas.LoginSQLTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 24.097
> sec
> [junit] log4j:ERROR Failed to flush writer,
> [junit] java.io.IOException: Bad file descriptor
> [junit] at java.io.FileOutputStream.writeBytes(Native Method)
> [junit] at
> java.io.FileOutputStream.write(FileOutputStream.java:260)
> [junit] at
> sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
> [junit] at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:
> 404)
> [junit] at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
> [junit] at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
> [junit] at
> java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
> [junit] at
> org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:49)
> [junit] at
> org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:306)
> [junit] at
> org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:
> 225)
> [junit] at
> org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
> [junit] at
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
> [junit] at
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Ap
> penderAttachableImpl.java:57)
> [junit] at
> org.apache.log4j.Category.callAppenders(Category.java:187)
> [junit] at org.apache.log4j.Category.forcedLog(Category.java:372)
> [junit] at org.apache.log4j.Category.log(Category.java:864)
> [junit] at
> org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:152)
> [junit] at
> org.apache.geronimo.remoting.router.SubsystemRouter.doStart(SubsystemRou
> ter.java:61)
> [junit] at
> org.apache.geronimo.remoting.transport.async.Registry.getServerForClient
> Request(Registry.java:146)
> [junit] at
> org.apache.geronimo.remoting.transport.async.AsyncClient.sendRequest(Asy
> ncClient.java:52)
> [junit] at
> org.apache.geronimo.remoting.transport.RemoteTransportInterceptor.invoke
> (RemoteTransportInterceptor.java:63)
> [junit] at
> org.apache.geronimo.remoting.MarshalingInterceptor.invoke(MarshalingInte
> rceptor.java:47)
> [junit] at
> org.apache.geronimo.remoting.jmx.NotificationRemoterInterceptor.invoke(N
> otificationRemoterInterceptor.java:62)
> [junit] at
> org.apache.geronimo.proxy.SimpleRPCContainer.invoke(SimpleRPCContainer.j
> ava:50)
> [junit] at
> org.apache.geronimo.proxy.ProxyContainer.invoke(ProxyContainer.java:51)
> [junit] at $Proxy0.removeLoginModule(Unknown Source)
> [junit] at
> org.apache.geronimo.security.jaas.RemoteLoginModuleLocalWrapper.finalize
> (RemoteLoginModuleLocalWrapper.java:160)
> [junit] at java.lang.ref.Finalizer.invokeFinalizeMethod(Native
> Method)
> [junit] at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
> [junit] at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
> [junit] at java.lang.ref.Finalizer$3.run(Finalizer.java:148)
> [junit] at java.lang.Thread.run(Thread.java:552)
>
>