Matthew Clarke created NIFI-1491:
------------------------------------

             Summary: NPE error on startup because of file permission issues
                 Key: NIFI-1491
                 URL: https://issues.apache.org/jira/browse/NIFI-1491
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 0.4.1
            Reporter: Matthew Clarke
            Priority: Minor


 A node that was part of a NiFi cluster would not start.  It immediately 
through this error in the app log:

2016-02-08 15:26:46,617 DEBUG [main] org.apache.nifi.BootstrapListener Awaiting 
response from Bootstrap...
2016-02-08 15:26:46,629 INFO [main] org.apache.nifi.BootstrapListener 
Successfully initiated communication with Bootstrap
2016-02-08 15:26:46,635 ERROR [main] org.apache.nifi.NiFi Failure to launch 
NiFi due to java.lang.NullPointerException
java.lang.NullPointerException: null
at org.apache.nifi.util.FileUtils.deleteFilesInDir(FileUtils.java:141) 
~[nifi-nar-utils-1.1.1.0-12.jar:1.1.1.0-12]
at org.apache.nifi.NiFi.<init>(NiFi.java:98) 
~[nifi-runtime-1.1.1.0-12.jar:1.1.1.0-12]
at org.apache.nifi.NiFi.main(NiFi.java:227) 
~[nifi-runtime-1.1.1.0-12.jar:1.1.1.0-12]
2016-02-08 15:26:46,637 INFO [Thread-1] org.apache.nifi.NiFi Initiating 
shutdown of Jetty web server...
2016-02-08 15:26:46,638 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server 
shutdown completed (nicely or otherwise).

Turns out the problem was permission related to files in the NiFi work dir.
NiFi should present a better error to the user.



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

Reply via email to