[ 
https://issues.apache.org/jira/browse/FELIX-3211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard S. Hall reopened FELIX-3211:
------------------------------------

    
> org.apache.felix.framework.cache.BundleCache.deleteDirectoryTreeRecursive 
> throws NPE
> ------------------------------------------------------------------------------------
>
>                 Key: FELIX-3211
>                 URL: https://issues.apache.org/jira/browse/FELIX-3211
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.0
>         Environment: Windows 7 (32), Java 7
>            Reporter: Ludovic HOCHET
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-4.0.2
>
>
> The following exception was found in logs:
> org.osgi.framework.BundleException: Unable to flush bundle cache.
>       at org.apache.felix.framework.Felix.init(Felix.java:652)
>       at icom.AppMain.initApplicationOsgi(AppMain.java:257)
>       at icom.AppMain.main(AppMain.java:145)
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.felix.framework.cache.BundleCache.deleteDirectoryTreeRecursive(BundleCache.java:429)
>       at 
> org.apache.felix.framework.cache.BundleCache.deleteDirectoryTreeRecursive(BundleCache.java:431)
>       at 
> org.apache.felix.framework.cache.BundleCache.deleteDirectoryTree(BundleCache.java:371)
>       at 
> org.apache.felix.framework.cache.BundleCache.delete(BundleCache.java:213)
>       at org.apache.felix.framework.Felix.init(Felix.java:648)
>       ... 2 more
> The famework is started with the clear cache property.
> Looking at BundleCache code, it doesn't check for null on the return of 
> getSecureAction().listDirectory(target) (which eventually calls Files.list() 
> which can return null from the native call

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to