Eugene Petrenko created FELIX-4570:
--------------------------------------
Summary: NPE in resources loading with local URLs option
Key: FELIX-4570
URL: https://issues.apache.org/jira/browse/FELIX-4570
Project: Felix
Issue Type: Bug
Reporter: Eugene Petrenko
I switch on 'use local URL' for my felix container. In the code:
org.apache.felix.framework.BundleWiringImpl.BundleClassLoader#getResource
you have an option to convert to local URL. When the option is enabled and the
URL is not found (read NULL) the NPE is thrown.
og4j:WARN Caught Exception while in Loader.getResource. This may be innocuous.
java.lang.NullPointerException
at
org.apache.felix.framework.BundleWiringImpl.convertToLocalUrl(BundleWiringImpl.java:2559)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getResource(BundleWiringImpl.java:2461)
at org.apache.log4j.helpers.Loader.getResource(Loader.java:96)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:105)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at
com.intellij.openapi.diagnostic.Log4jFactory.getLoggerInstance(Log4jFactory.java:26)
at com.intellij.openapi.diagnostic.Logger.getInstance(Logger.java:37)
at com.intellij.openapi.util.io.FileUtil.<clinit>(FileUtil.java:42)
--
This message was sent by Atlassian JIRA
(v6.2#6252)