[
https://issues.apache.org/jira/browse/NIFI-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190421#comment-15190421
]
ASF GitHub Bot commented on NIFI-1491:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/nifi/pull/227
> 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, 0.5.1
> Reporter: Matthew Clarke
> Assignee: Tony Kurc
> Priority: Minor
> Fix For: 0.6.0
>
>
> 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)