Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5250

NullpointerException in fileinstall when watched directory is a mapped-network-drive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • fileinstall-3.5.2
    • None
    • File Install
    • None
    • Windows

    Description

      When watching a directory on a mapped-network-drive, a NullpointerException occurs

      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]
      
      Watcher.java
      Path name = ev.context(); // <- returns null
      Path child = dir.resolve(name);
      

      Usecase: I need to specify a personal-network-drive because of user-passwords which get passed to ConfigAdmin.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lostiniceland Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: