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

Marc closed FELIX-5250.
-----------------------
    Resolution: Won't Fix

Java NIO cannot reveive events from a remote filesystem. This would be possible 
using polling, which is less efficient and not worth the effort.

> NullpointerException in fileinstall when watched directory is a 
> mapped-network-drive
> ------------------------------------------------------------------------------------
>
>                 Key: FELIX-5250
>                 URL: https://issues.apache.org/jira/browse/FELIX-5250
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.5.2
>         Environment: Windows
>            Reporter: Marc
>
> When watching a directory on a mapped-network-drive, a NullpointerException 
> occurs
> {noformat}org.apache.felix.fileinstall - In main loop, we have serious trouble
> java.lang.NullPointerException: null
>       at sun.nio.fs.WindowsPath.toWindowsPath(WindowsPath.java:373) 
> [na:1.7.0_79]
>       at sun.nio.fs.WindowsPath.resolve(WindowsPath.java:525) [na:1.7.0_79]
>       at sun.nio.fs.WindowsPath.resolve(WindowsPath.java:44) [na:1.7.0_79]
>       at 
> org.apache.felix.fileinstall.internal.Watcher.processEvents(Watcher.java:179) 
> [na:na]
>       at 
> org.apache.felix.fileinstall.internal.WatcherScanner.scan(WatcherScanner.java:63)
>  [na:na]
>       at 
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:302)
>  [na:na]
> {noformat}
> {code:java|title=Watcher.java}
> Path name = ev.context(); // <- returns null
> Path child = dir.resolve(name);
> {code}
> Usecase: I need to specify a personal-network-drive because of user-passwords 
> which get passed to ConfigAdmin.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to