java.nio.channels.ClosedChannelException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I have multiple webapps running in tomcat all using logback. As discussed in the documentation, I configured the LoggingContextFilter and ContextDetachingSCL in the web.xml and sifting appender in logback.xml (attached). The only other configuration done is that at app startup some log levels are set programatically based on a separate properties file. When the app is running, I get an OverlappingFileLockException and ClosedChannelException NIO exceptions repeatedly. The stack traces are below. Log message volume is pretty high (2-3 GB log file per day), but iostat shows utilization as very low. After startup, all log messages originate from shared libraries and one particular webapp. ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE-jobs.v1] - Appender [FILE-jobs.v1] failed to append. java.nio.channels.OverlappingFileLockException at java.nio.channels.OverlappingFileLockException at at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1166) at at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1068) at at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:824) at at java.nio.channels.FileChannel.lock(FileChannel.java:860) at at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:187) at at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at at ch.qos.logback.core.sift.SiftingAppenderBase.append(SiftingAppenderBase.java:94) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470) at at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:442) at at ch.qos.logback.classic.Logger.debug(Logger.java:535) ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE-jobs.v1] - IO failure in appender java.nio.channels.ClosedChannelException at java.nio.channels.ClosedChannelException at at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at at ch.qos.logback.core.sift.SiftingAppenderBase.append(SiftingAppenderBase.java:94) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470) at at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424) at at ch.qos.logback.classic.Logger.info(Logger.java:644)
    via by Kireet Reddy,
  • I have multiple webapps running in tomcat all using logback. As discussed in the documentation, I configured the LoggingContextFilter and ContextDetachingSCL in the web.xml and sifting appender in logback.xml (attached). The only other configuration done is that at app startup some log levels are set programatically based on a separate properties file. When the app is running, I get an OverlappingFileLockException and ClosedChannelException NIO exceptions repeatedly. The stack traces are below. Log message volume is pretty high (2-3 GB log file per day), but iostat shows utilization as very low. After startup, all log messages originate from shared libraries and one particular webapp. ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE-jobs.v1] - Appender [FILE-jobs.v1] failed to append. java.nio.channels.OverlappingFileLockException at java.nio.channels.OverlappingFileLockException at at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1166) at at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1068) at at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:824) at at java.nio.channels.FileChannel.lock(FileChannel.java:860) at at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:187) at at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at at ch.qos.logback.core.sift.SiftingAppenderBase.append(SiftingAppenderBase.java:94) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470) at at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:442) at at ch.qos.logback.classic.Logger.debug(Logger.java:535) ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE-jobs.v1] - IO failure in appender java.nio.channels.ClosedChannelException at java.nio.channels.ClosedChannelException at at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at at ch.qos.logback.core.sift.SiftingAppenderBase.append(SiftingAppenderBase.java:94) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470) at at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424) at at ch.qos.logback.classic.Logger.info(Logger.java:644)
    via by Kireet Reddy,
  • no logger file can be out!! 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:639) at com.dajie.framework.log.recorder.logback.LogbackLogger.log(LogbackLogger.java:36) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.log(PushInvokerPasser.java:67) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.afterReturn(PushInvokerPasser.java:56) at com.dajie.framework.log.recorder.aspect.aop.ServiceAspect.afterReturn(ServiceAspect.java:85) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) at org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:58) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.recordRemoteControlPushLog(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:120) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:619) at com.dajie.position.log.UserPushLogAppender.create(UserPushLogAppender.java:11) at com.dajie.position.stat.StatAppService.eventPushActivity(StatAppService.java:793) at com.dajie.position.stat.StatAppService$$FastClassByCGLIB$$d9e03f6f.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.eventPushActivity(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:118) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:639) at com.dajie.framework.log.recorder.logback.LogbackLogger.log(LogbackLogger.java:36) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.log(PushInvokerPasser.java:67) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.afterReturn(PushInvokerPasser.java:56) at com.dajie.framework.log.recorder.aspect.aop.ServiceAspect.afterReturn(ServiceAspect.java:85) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) at org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:58) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.recordRemoteControlPushLog(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:120) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay].
    via by leon,
  • no logger file can be out!! 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:639) at com.dajie.framework.log.recorder.logback.LogbackLogger.log(LogbackLogger.java:36) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.log(PushInvokerPasser.java:67) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.afterReturn(PushInvokerPasser.java:56) at com.dajie.framework.log.recorder.aspect.aop.ServiceAspect.afterReturn(ServiceAspect.java:85) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) at org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:58) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.recordRemoteControlPushLog(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:120) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:619) at com.dajie.position.log.UserPushLogAppender.create(UserPushLogAppender.java:11) at com.dajie.position.stat.StatAppService.eventPushActivity(StatAppService.java:793) at com.dajie.position.stat.StatAppService$$FastClassByCGLIB$$d9e03f6f.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.eventPushActivity(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:118) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 ERROR RollingFileAppender IO failure in appender java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.info(Logger.java:639) at com.dajie.framework.log.recorder.logback.LogbackLogger.log(LogbackLogger.java:36) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.log(PushInvokerPasser.java:67) at com.dajie.framework.log.recorder.aspect.aop.PushInvokerPasser.afterReturn(PushInvokerPasser.java:56) at com.dajie.framework.log.recorder.aspect.aop.ServiceAspect.afterReturn(ServiceAspect.java:85) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) at org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:58) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.dajie.position.stat.StatAppService$$EnhancerByCGLIB$$1cebb072.recordRemoteControlPushLog(<generated>) at com.dajie.position.service.impl.ApnQueue.eventAddLog(ApnQueue.java:120) at javapns.notification.transmission.NotificationThread.runQueue(NotificationThread.java:284) at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:208) at java.lang.Thread.run(Thread.java:662) 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [USER_PUSH_LOG]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitor]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay]. 2013-03-25 19:23:01 WARN RollingFileAppender Attempted to append to non started appender [filePushMonitorDay].
    via by leon,
    • java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:243) at ch.qos.logback.core.FileAppender.safeWrite(FileAppender.java:188) at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:204) at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:148) at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) at ch.qos.logback.core.sift.SiftingAppenderBase.append(SiftingAppenderBase.java:94) at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424) at ch.qos.logback.classic.Logger.info(Logger.java:644)

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,