[logback-dev] [JIRA] (LOGBACK-1267) java.io.IOException - IO failure while writing to file

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Feb 24 04:49:00 CET 2017


Manchi Supriya created LOGBACK-1267:
---------------------------------------

             Summary: java.io.IOException -  IO failure while writing to file
                 Key: LOGBACK-1267
                 URL: https://jira.qos.ch/browse/LOGBACK-1267
             Project: logback
          Issue Type: Bug
          Components: logback-classic, logback-core
    Affects Versions: 1.0.9
         Environment: {color:#333333}java version "1.6.0_18"{color}

{color:#333333}slf4j version "1.7.5"{color}

{color:#333333}logback-classic "1.0.9"{color}
            Reporter: Manchi Supriya
            Assignee: Logback dev list
         Attachments: included_emergency-credit-logback-config.xml

I am using logback {color:#333333}to redirect a logs to dedicated log file. Attached is the configuration.{color}

 {color:#14892c} {color}

{color:#333333}This works fine when the traffic is low. But during load testing I see below exception.{color}

{color:#d04437}13:50:53,594 |-ERROR in c.q.l.c.recovery.ResilientFileOutputStream at 328304711 - IO failure while writing to file [/opt/ericsson/logs/ec/emergency-credit.log] java.io.IOException: ����
 at java.io.IOException: ����
 at  at java.io.FileOutputStream.writeBytes(FileOutputStream.java)
 at  at java.io.FileOutputStream.write(FileOutputStream.java:282)
 at  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
 at  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
 at  at ch.qos.logback.core.recovery.ResilientOutputStreamBase.flush(ResilientOutputStreamBase.java:79)
 at  at ch.qos.logback.core.encoder.LayoutWrappingEncoder.doEncode(LayoutWrappingEncoder.java:137)
 at  at ch.qos.logback.core.OutputStreamAppender.writeOut(OutputStreamAppender.java:188)
 at  at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:206)
 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.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48)
 at  at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:280)
 at  at ch.qos.logback.classic.Logger.callAppenders(Logger.java:267)
 at  at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:449)
 at  at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403)
 at  at ch.qos.logback.classic.Logger.info(Logger.java:619)
 at  at *com.ericsson.ece.emergency.credit.controller.impl.EmergencyCreditControllerImpl.processEmergencyCredit(EmergencyCreditControllerImpl.java:42)*
 at  at sun.reflect.GeneratedMethodAccessor849.invoke(Unknown Source)
 at  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at  at java.lang.reflect.Method.invoke(Method.java:597)
 at  at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:36)
 at  at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
 at  at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:44)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at  at com.sun.proxy.$Proxy584.processEmergencyCredit(Unknown Source)
 at  at com.ericsson.ece.emergency.credit.controller.impl.EmergencyCreditControllerImpl_bwvtc0_EmergencyCreditControllerImpl.processEmergencyCredit(EmergencyCreditControllerImpl_bwvtc0_EmergencyCreditControllerImpl.java:56)
 at  at com.ericsson.ece.emergency.credit.controller.impl.EmergencyCreditControllerImpl_bwvtc0_EmergencyCreditControllerImpl_WLSkel.invoke(Unknown Source)
 at  at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
 at  at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
 at  at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
 at  at com.ericsson.ece.emergency.credit.controller.impl.EmergencyCreditControllerImpl_bwvtc0_EmergencyCreditControllerImpl_1033_WLStub.processEmergencyCredit(Unknown Source)
 at  at sun.reflect.GeneratedMethodAccessor1198.invoke(Unknown Source)
 at  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at  at java.lang.reflect.Method.invoke(Method.java:597)
 at  at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
 at  at com.sun.proxy.$Proxy583.processEmergencyCredit(Unknown Source)
 at  at com.ericsson.ece.ec.ws.util.EcWsUtils.sendWSRequest(EcWsUtils.java:86)
 at  at com.ericsson.ece.ec.ws.ejb.impl.ECLoanCreditImpl.loanCredit(ECLoanCreditImpl.java:71)
 at  at sun.reflect.GeneratedMethodAccessor847.invoke(Unknown Source)
 at  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at  at java.lang.reflect.Method.invoke(Method.java:597)
 at  at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:36)
 at  at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
 at  at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:44)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
 at  at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
 at  at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at  at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at  at com.sun.proxy.$Proxy582.loanCredit(Unknown Source)
 at  at com.ericsson.ece.ec.ws.ejb.impl.ECLoanCreditImpl_x7vksu_WSOImpl.__WL_loanCredit_WS(ECLoanCreditImpl_x7vksu_WSOImpl.java:68)
 at  at sun.reflect.GeneratedMethodAccessor846.invoke(Unknown Source)
 at  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at  at java.lang.reflect.Method.invoke(Method.java:597)
 at  at weblogic.wsee.server.ejb.WsEjb.invoke(WsEjb.java:54)
 at  at weblogic.wsee.jaxws.WLSEjbInstanceResolver$WLSEjbInvoker.invoke(WLSEjbInstanceResolver.java:187)
 at  at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)
 at  at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)
 at  at com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:265)
 at  at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)
 at  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
 at  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
 at  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
 at  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
 at  at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:373)
 at  at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:524)
 at  at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:255)
 at  at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
 at  at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:208)
 at  at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:310)
 at  at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:223)
 at  at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:124)
 at  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at  at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:79)
 at  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 at  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 at  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 at  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
 at  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(Unknown Source)
 at  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
 at  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
 at  at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
 at  at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
 at  at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
 at  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
 at  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173){color}

{color:#333333}The code which triggers this error is below{color}

{color:#0000c0}+_LOGGER_+{color}.info({color:#2a00ff}"EC EC: Emergency Credit Requested: Origin Node Type: \{}, Origin Host Name: \{}, MSISDN: \{} and Request Type: \{}"{color},*{color:#7f0055}new{color}* Object[] \{ originNodeType, originHostName, msisdn,requestType });

Kindly suggest

 

 



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list