Andrea-Campanella edited a comment on pull request #53:
URL: https://github.com/apache/felix-dev/pull/53#issuecomment-704996029


   I can confirm that the filter being null in the 
`andreacampanella/voltha-onos:felix-fix` is the culprit of the NPE I was seeing 
in my karaf 4.2.9 deployment
   ```
   2020-10-07T15:13:23,789 | ERROR | 
fileinstall-/root/onos/apache-karaf-4.2.9/deploy | fileinstall                  
    | 10 - org.apache.felix.fileinstall - 3.6.6 | In main loop, we have serious 
trouble
   java.lang.NullPointerException: null
           at 
org.apache.felix.fileinstall.internal.Scanner.processFiles(Scanner.java:158) 
~[!/:3.6.6]
           at 
org.apache.felix.fileinstall.internal.Scanner.scan(Scanner.java:131) ~[!/:3.6.6]
           at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:311)
 [!/:3.6.6]
   ```
   adding the following line `felix.fileinstall.filter=*.jar` to the file 
removes the NPE by ensuring the filter is never null. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to