[
https://issues.apache.org/jira/browse/FELIX-5250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marc updated FELIX-5250:
------------------------
Description:
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.
was:
When watching a directory on a mapped-network-drive, a NullpointerException
occurs
{noformat}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.
> 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)