logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Baranczak <MBaranc...@ePublishing.com>
Subject IO error while logging
Date Mon, 14 Aug 2006 15:22:50 GMT
I'm seeing an intermittent error on one of our jboss servers. Every  
once in a while, something happens to the logging system, and every  
attempt to write to the log causes an exception (see below), which of  
course is of major concern to us.

So far, this is only happening on one box. I'm trying to narrow it  
down some more, but so far I don't have a lot to go on. Any  
suggestions would be most welcome.



JBoss 4.0.1 with log4j 1.2.8
Java 1.5.0_05 on Linux


java.lang.IllegalStateException: Current state = FLUSHED, new state =  
CODING
         at java.nio.charset.CharsetEncoder.throwIllegalStateException 
(CharsetEncoder.java:941)
         at java.nio.charset.CharsetEncoder.encode 
(CharsetEncoder.java:537)
         at sun.nio.cs.StreamEncoder$CharsetSE.implWrite 
(StreamEncoder.java:384)
         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
         at java.io.OutputStreamWriter.write(OutputStreamWriter.java: 
204)
         at java.io.Writer.write(Writer.java:126)
         at org.apache.log4j.helpers.QuietWriter.write 
(QuietWriter.java:39)
         at org.apache.log4j.WriterAppender.subAppend 
(WriterAppender.java:292)
         at org.apache.log4j.DailyRollingFileAppender.subAppend 
(DailyRollingFileAppender.java:349)
         at org.apache.log4j.WriterAppender.append 
(WriterAppender.java:150)
         at org.apache.log4j.AppenderSkeleton.doAppend 
(AppenderSkeleton.java:221)
         at  
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders 
(AppenderAttachableImpl.java:57)
         at org.apache.log4j.Category.callAppenders(Category.java:187)
         at org.apache.log4j.Category.forcedLog(Category.java:372)
         at org.apache.log4j.Category.log(Category.java:864)
         at org.apache.commons.logging.impl.Log4JLogger.error 
(Log4JLogger.java:192)

         at com.epublishing.*
	[ snip... proprietary code ]

         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:157)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter 
(ReplyHeaderFilter.java:75)
         at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke 
(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:520)
         at  
org.apache.catalina.core.StandardContextValve.invokeInternal 
(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke 
(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke 
(CustomPrincipalValve.java:66)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:102)
         at  
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke 
(SecurityAssociationValve.java:150)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke 
(JaccContextValve.java:54)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke 
(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke 
(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:102)
         at org.apache.catalina.valves.AccessLogValve.invoke 
(AccessLogValve.java:535)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke 
(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext 
(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke 
(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke 
(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service 
(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process 
(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol 
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt 
(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)


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