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

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

GitHub user alopresto opened a pull request:

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

    NIFI-2643 Fixed bootstrap issue with vanilla instance

    The `RunNiFi` invocation checked if the key was `null` instead of `blank`. 

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

    $ git pull https://github.com/alopresto/nifi NIFI-2643

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

    https://github.com/apache/nifi/pull/932.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 #932
    
----
commit 7233628032c210bd3ace6c1ede63269be73f8c17
Author: Andy LoPresto <[email protected]>
Date:   2016-08-24T19:17:14Z

    NIFI-2643 Changed null check to !isBlank() for key in RunNiFi.

commit f2a91d33051514ba1ed4d7d4f5fb4cc7556a0af8
Author: Andy LoPresto <[email protected]>
Date:   2016-08-24T19:20:11Z

    NIFI-2643 Updated comment in bootstrap.conf template.

----


> Vanilla instance fails to start due to IllegalArgumentException due sensitive 
> property defaults
> -----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-2643
>                 URL: https://issues.apache.org/jira/browse/NIFI-2643
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Percivall
>            Assignee: Bryan Bende
>            Priority: Blocker
>             Fix For: 1.0.0
>
>
> With NIFI-1831 default properties were added to bootstrap.conf and 
> nifi.properties that cause a vanilla instance to not start up with the 
> following exception in the nifi.app logs (nothing of note in bootstrap logs).
> When I commented out the line for "nifi.bootstrap.sensitive.key=" in the 
> bootstrap.conf it worked as expected. There also appears to be a 
> "nifi.sensitive.props.key.protected" with no value in the nifi.properties. 
> This should at least be commented out as well.
> 2016-08-24 12:09:51,373 INFO [main] org.apache.nifi.NiFi Launching NiFi...
> 2016-08-24 12:09:51,376 INFO [main] org.apache.nifi.NiFi Read property 
> protection key from bootstrap process
> 2016-08-24 12:09:51,379 ERROR [main] org.apache.nifi.NiFi The bootstrap 
> process did not provide a valid key and there are protected properties 
> present in the properties file
> java.lang.IllegalArgumentException: The key was not provided in valid hex 
> format and of the correct length
>       at org.apache.nifi.NiFi.loadFormattedKey(NiFi.java:274) 
> [nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>       at org.apache.nifi.NiFi.initializeProperties(NiFi.java:246) 
> [nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>       at org.apache.nifi.NiFi.main(NiFi.java:232) 
> [nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
> 2016-08-24 12:09:51,379 ERROR [main] org.apache.nifi.NiFi Failure to launch 
> NiFi due to java.lang.IllegalArgumentException: The bootstrap process did not 
> provide a valid key and there are protected properties present in the 
> properties file
> java.lang.IllegalArgumentException: The bootstrap process did not provide a 
> valid key and there are protected properties present in the properties file
>       at org.apache.nifi.NiFi.initializeProperties(NiFi.java:260) 
> ~[nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>       at org.apache.nifi.NiFi.main(NiFi.java:232) 
> ~[nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]



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

Reply via email to