<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
#email-body { min-width: 30em !important; }
#email-page { padding: 8px !important; }
#email-banner { padding: 8px 8px 0 8px !important; }
#email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
#email-fields { padding: 0 8px 8px 8px !important; }
#email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
<tr valign="top">
<td id="email-page" style="padding:16px !important;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
<tr valign="top">
<td bgcolor="#003366" style="background-color:#003366;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="http://jira.qos.ch/s/en_USb9v8he-418945332/850/25/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
</tr><tr valign="top">
<td id="email-banner" style="padding:32px 32px 0 32px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
<img id="email-avatar" src="http://jira.qos.ch/secure/useravatar?avatarId=10122" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
<div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
<a class="user-hover" rel="pmatulionis" id="email_pmatulionis" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=pmatulionis" style="color:#326ca6;">Paulius Matulionis</a>
created <img src="http://jira.qos.ch/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;' href='http://jira.qos.ch/browse/LOGBACK-1054'>LOGBACK-1054</a>
</div>
<div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
<a style='color:#326ca6;text-decoration:none;' href='http://jira.qos.ch/browse/LOGBACK-1054'><strong>NullPointerException from RollingFileAppender</strong></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td id="email-fields" style="padding:0 32px 32px 32px;">
<table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
<tr valign="top">
<td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="http://jira.qos.ch/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> Bug
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Affects Versions:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
1.1.2 </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Assignee:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a class="user-hover" rel="logback-dev@qos.ch" id="email_logback-dev@qos.ch" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=logback-dev%40qos.ch" style="color:#326ca6;">Logback dev list</a>
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Components:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
logback-classic </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Created:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
05/Mar/15 11:56 AM
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Description:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<p style='margin-top:0;margin-bottom:10px;'>Having this logback configuration: </p>
<p style='margin-top:0;margin-bottom:10px;'><?xml version="1.0" encoding="UTF-8"?> <br/>
<configuration debug="true" scan="true" scanPeriod="60 minutes"><br/>
<appender name="LOGOUTPUT" class="ch.qos.logback.core.rolling.RollingFileAppender"><br/>
<file>$</p>
{catalina.base}
<p style='margin-top:0;margin-bottom:10px;'>/logs/gateway_api.log</file><br/>
<encoder><br/>
<pattern>%d</p>
{HH:mm:ss.SSS}
<p style='margin-top:0;margin-bottom:10px;'> <span class="error">[%thread]</span> %-5level %logger</p>
{36} - %msg%n</pattern><br/>
</encoder><br/>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"><br/>
<FileNamePattern>logFile.%d{yyyy-MM-dd}.log</FileNamePattern><br/>
</rollingPolicy><br/>
</appender><br/>
<br/>
<appender name="STDOUTPUT" class="ch.qos.logback.core.ConsoleAppender"><br/>
<encoder><br/>
<pattern>%d{HH:mm:ss.SSS} <span class="error">[%thread]</span> %-5level %logger{36}
<p style='margin-top:0;margin-bottom:10px;'> - %msg%n</pattern><br/>
</encoder><br/>
</appender></p>
<p style='margin-top:0;margin-bottom:10px;'> <logger name="com.groupgti" level="DEBUG"/><br/>
<logger name="org.springframework" level="INFO"/><br/>
<logger name="org.apache.cxf" level="INFO"/><br/>
<root level="WARN"><br/>
<appender-ref ref="LOGOUTPUT"/><br/>
</root><br/>
</configuration></p>
<p style='margin-top:0;margin-bottom:10px;'>And these dependencies in classpath: </p>
<p style='margin-top:0;margin-bottom:10px;'> <dependency><br/>
<groupId>org.slf4j</groupId><br/>
<artifactId>slf4j-api</artifactId><br/>
<version>1.7.10</version><br/>
<scope>compile</scope><br/>
</dependency><br/>
<dependency><br/>
<groupId>org.slf4j</groupId><br/>
<artifactId>jcl-over-slf4j</artifactId><br/>
<version>1.7.10</version><br/>
<scope>compile</scope><br/>
</dependency><br/>
<dependency><br/>
<groupId>ch.qos.logback</groupId><br/>
<artifactId>logback-classic</artifactId><br/>
<version>1.1.2</version><br/>
<scope>compile</scope><br/>
</dependency></p>
<p style='margin-top:0;margin-bottom:10px;'>Getting a lot of these exceptions in log files. </p>
<p style='margin-top:0;margin-bottom:10px;'>08:55:58,884 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Elapsed period: Wed Feb 25 08:55:45 GMT 2015 <br/>
08:55:58,889 |-INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> to <span class="error">[logFile.2015-02-25.log]</span> <br/>
08:55:58,891 |-WARN in c.q.l.co.rolling.helper.RenameUtil - Failed to rename file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> as <span class="error">[logFile.2015-02-25.log]</span>. <br/>
08:55:58,892 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender<span class="error">[LOGOUTPUT]</span> - Appender <span class="error">[LOGOUTPUT]</span> failed to append. java.lang.NullPointerException <br/>
at java.lang.NullPointerException <br/>
at at ch.qos.logback.core.rolling.helper.FileStoreUtil.areOnSameFileStore(FileStoreUtil.java:44) <br/>
at at ch.qos.logback.core.rolling.helper.RenameUtil.areOnDifferentVolumes(RenameUtil.java:97) <br/>
at at ch.qos.logback.core.rolling.helper.RenameUtil.rename(RenameUtil.java:67) <br/>
at at ch.qos.logback.core.rolling.TimeBasedRollingPolicy.rollover(TimeBasedRollingPolicy.java:153) <br/>
at at ch.qos.logback.core.rolling.RollingFileAppender.attemptRollover(RollingFileAppender.java:158) <br/>
at at ch.qos.logback.core.rolling.RollingFileAppender.rollover(RollingFileAppender.java:137) <br/>
at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:178) <br/>
at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) <br/>
at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) <br/>
at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) <br/>
at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:273) <br/>
at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:260) <br/>
at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:442) <br/>
at at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:414) <br/>
at at ch.qos.logback.classic.Logger.debug(Logger.java:507) <br/>
at at com.groupgti.saml.handler.AssertionHandler.purgeRecords(AssertionHandler.java:95) <br/>
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br/>
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) <br/>
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) <br/>
at at java.lang.reflect.Method.invoke(Method.java:483) <br/>
at at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) <br/>
at at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) <br/>
at at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) <br/>
at at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) <br/>
at at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) <br/>
at at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) <br/>
at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) <br/>
at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) <br/>
at at java.lang.Thread.run(Thread.java:745) <br/>
08:55:58,944 |-ERROR in c.q.l.c.recovery.ResilientFileOutputStream@1011140840 - IO failure while writing to file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> java.io.IOException: Stream Closed <br/>
at java.io.IOException: Stream Closed <br/>
at at java.io.FileOutputStream.writeBytes(Native Method) <br/>
at at java.io.FileOutputStream.write(FileOutputStream.java:315) <br/>
at at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) <br/>
at at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) <br/>
at at ch.qos.logback.core.recovery.ResilientOutputStreamBase.flush(ResilientOutputStreamBase.java:79) <br/>
at at ch.qos.logback.core.encoder.LayoutWrappingEncoder.doEncode(LayoutWrappingEncoder.java:137) <br/>
at at ch.qos.logback.core.OutputStreamAppender.writeOut(OutputStreamAppender.java:194) <br/>
at at ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:209) <br/>
at at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:219) <br/>
at at ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:182) <br/>
at at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) <br/>
at at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) <br/>
at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) <br/>
at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:273) <br/>
at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:260) <br/>
at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:442) <br/>
at at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:414) <br/>
at at ch.qos.logback.classic.Logger.error(Logger.java:547) <br/>
at at com.groupgti.saml.handler.AssertionHandler.purgeRecords(AssertionHandler.java:103) <br/>
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br/>
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) <br/>
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) <br/>
at at java.lang.reflect.Method.invoke(Method.java:483) <br/>
at at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) <br/>
at at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) <br/>
at at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) <br/>
at at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) <br/>
at at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) <br/>
at at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) <br/>
at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) <br/>
at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) <br/>
at at java.lang.Thread.run(Thread.java:745) <br/>
10:07:37,098 |-INFO in c.q.l.c.recovery.ResilientFileOutputStream@1011140840 - Attempting to recover from IO failure on file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> <br/>
10:07:37,099 |-INFO in c.q.l.c.recovery.ResilientFileOutputStream@1011140840 - Recovered from IO failure on file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> <br/>
08:55:58,946 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Elapsed period: Thu Feb 26 08:55:58 GMT 2015 <br/>
08:55:58,947 |-INFO in c.q.l.co.rolling.helper.RenameUtil - Renaming file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> to <span class="error">[logFile.2015-02-26.log]</span> <br/>
08:55:58,947 |-WARN in c.q.l.co.rolling.helper.RenameUtil - Failed to rename file <span class="error">[/usr/share/apache-tomcat-8.0.18/logs/saml.log]</span> as <span class="error">[logFile.2015-02-26.log]</span>. <br/>
08:55:58,947 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender<span class="error">[LOGOUTPUT]</span> - Appender <span class="error">[LOGOUTPUT]</span> failed to append. java.lang.NullPointerException </p>
<p style='margin-top:0;margin-bottom:10px;'>I have been adviced to raise a bug. Reference in a mailing list:</p>
<p style='margin-top:0;margin-bottom:10px;'><a href="http://logback.10977.n7.nabble.com/java-lang-NullPointerException-from-RollingFileAppender-td14082.html#a14087" class="external-link">http://logback.10977.n7.nabble.com/java-lang-NullPointerException-from-RollingFileAppender-td14082.html#a14087</a></p>
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Project:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a style="color:#326ca6;" href="http://jira.qos.ch/browse/LOGBACK">logback</a>
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Labels:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
rollingFileappender
logging
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Priority:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="http://jira.qos.ch/images/icons/priorities/major.png" height="16" width="16" border="0" align="absmiddle" alt="Major"> Major
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Reporter:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a class="user-hover" rel="pmatulionis" id="email_pmatulionis" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=pmatulionis" style="color:#326ca6;">Paulius Matulionis</a>
</td>
</tr> </table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td><!-- End #email-page -->
</tr>
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
This message is automatically generated by JIRA.<br />
If you think it was sent incorrectly, please contact your JIRA administrators<br />
For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
</td>
</tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->