[
https://issues.apache.org/jira/browse/NIFI-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Zhurakousky updated NIFI-2643:
-----------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Components: Configuration
> Reporter: Joseph Percivall
> Assignee: Andy LoPresto
> Priority: Blocker
> Labels: bootstrap, encryption, security
> 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)