title: log4j:ERROR Attempted to append to closed appender named [..]
body: <p>I am getting following errors on my console repeatedly</p>
  
  <pre><code>log4j:ERROR Attempted to append to closed appender named [ConsoleAppender].
  log4j:ERROR Attempted to append to closed appender named [FixedWindowRollingFile].
  </code></pre>
  
  <h2>used log4j.xml</h2>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"&gt;
      &lt;appender class="org.apache.log4j.rolling.RollingFileAppender" name="FixedWindowRollingFile"&gt;
          &lt;param name="Append" value="true"/&gt;
          &lt;param name="ImmediateFlush" value="true"/&gt;
  
          &lt;rollingPolicy class="org.apache.log4j.rolling.FixedWindowRollingPolicy"&gt;
              &lt;param name="fileNamePattern" value="logs/StandardizeAccountService.%i.log"/&gt;
              &lt;param name="minIndex" value="1"/&gt;
              &lt;param name="maxIndex" value="10"/&gt;
          &lt;/rollingPolicy&gt;
          &lt;triggeringPolicy class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy"&gt;
              &lt;param name="MaxFileSize" value="1002400"/&gt;
          &lt;/triggeringPolicy&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %p %c{1}:%L - %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;layout class="org.apache.log4j.SimpleLayout"/&gt;
      &lt;/appender&gt;
  
      &lt;logger name="com.arosys" additivity="false" &gt;
          &lt;level value="INFO" /&gt;
          &lt;appender-ref ref="ConsoleAppender" /&gt;
          &lt;appender-ref ref="FixedWindowRollingFile"/&gt;
      &lt;/logger&gt;
  
      &lt;root&gt;
          &lt;priority value="INFO"/&gt;
          &lt;appender-ref ref="ConsoleAppender"/&gt;
          &lt;appender-ref ref="FixedWindowRollingFile"/&gt;
      &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>please help me where the problem.</p>