You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Eugene Petrenko (JIRA)" <ji...@apache.org> on 2014/07/21 13:02:38 UTC

[jira] [Commented] (FELIX-4570) NPE in resources loading with local URLs option

    [ https://issues.apache.org/jira/browse/FELIX-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14068402#comment-14068402 ] 

Eugene Petrenko commented on FELIX-4570:
----------------------------------------

Build 4.4.1 from Maven Central

> 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)