<div>I&#39;m hitting an NPE in logger initialization in the Felix OSGi container if I specify the logback.configurationFile system property.  Without the system property, I don&#39;t hit this and everything logs to the ConsoleAppender as expected.  Any suggestions as to how to fix this?</div>
<div><br></div><div>java.lang.NullPointerException</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Loader.java:58)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.classic.util.ContextInitializer.multiplicityWarning(ContextInitializer.java:160)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch(ContextInitializer.java:183)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.classic.util.ContextInitializer.findConfigFileURLFromSystemProperties(ContextInitializer.java:111)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.classic.util.ContextInitializer.findURLOfDefaultConfigurationFile(ContextInitializer.java:120)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.impl.StaticLoggerBinder.&lt;clinit&gt;(StaticLoggerBinder.java:55)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.weiglewilczek.slf4s.Logger$.apply(logger.scala:32)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.weiglewilczek.scalamodules.package$.&lt;init&gt;(package.scala:84)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.weiglewilczek.scalamodules.package$.&lt;clinit&gt;(package.scala)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.smiley.validation.create.Activator.start(Activator.scala:22)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.felix.framework.Felix.activateBundle(Felix.java:1822)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.felix.framework.Felix.startBundle(Felix.java:1739)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:637)</div>

<pre>

CONFIDENTIALITY NOTICE:  This e-mail message is covered by the Electronic Communications Privacy Act, 18 U.S.C. ยง2510-2521 and, together with any attachments, is intended only for the addressee. 
If you are not the intended recipient of this message, you may not disclose, print, copy, or disseminate this information.  
If you have received this in error, please reply and notify the sender (only) and delete the message along with any attachments. 
Unauthorized interception of this email is a violation of federal criminal law.  
If your company has signed a confidentiality agreement with Smiley Media, the content of this email is designated 'Confidential Information' within the meaning of that agreement.