You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/16 13:11:18 UTC

[jira] [Commented] (NIFI-1491) NPE error on startup because of file permission issues

    [ https://issues.apache.org/jira/browse/NIFI-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148511#comment-15148511 ] 

ASF GitHub Bot commented on NIFI-1491:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi/pull/227

    NIFI-1491

    Added comment when unable to list directory content

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi NIFI-1491

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/227.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #227
    
----
commit 4ae03bb7ed6b2739351bcda58528d16b497821ff
Author: Pierre Villard <pi...@gmail.com>
Date:   2016-02-16T10:02:10Z

    Merge remote-tracking branch 'refs/remotes/apache/master'

commit c912149d99739acbacd9ddbedf2789bb9a34b96e
Author: Pierre Villard <pi...@gmail.com>
Date:   2016-02-16T12:08:43Z

    NIFI-1491 comment NPE after listFiles()
    
    Added a comment if unable to list directory content

----


> 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)