[
https://issues.apache.org/jira/browse/NIFI-13617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-13617.
-----------------------------------
Resolution: Not A Bug
Hey [~joewitt] - thanks for asking the question! It forced me to look closer
and I got confused by how github was showing things in the history. The file
has been moved but the code was not changed with NIFI-12998, my bad.
As a matter of fact, there was no renaming of the properties but my
flow.json.gz was still referencing an instance of the Parameter Provider with
the old naming of the properties from the time of the initial review of my pull
request for that parameter provider (the properties didn't change after the PR
was merged). For some reasons NiFi was not complaining before (because I built
and restarted NiFi many times since then)... so some recent changes seem to
make NiFi not start when it was ignored before... Anyway, I no longer think
this should be considered as a bug, so closing as not a bug.
> No migrateProperties on Parameters Providers
> --------------------------------------------
>
> Key: NIFI-13617
> URL: https://issues.apache.org/jira/browse/NIFI-13617
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework, Extensions
> Affects Versions: 2.0.0-M4
> Reporter: Pierre Villard
> Priority: Major
>
> As part of NIFI-12998, names of properties on Parameters Providers (for
> example: OnePasswordParameterProvider) have been renamed but there is no
> migration of the properties in place so NiFi will fail starting.
> {code:java}
> Caused by: java.lang.IllegalStateException: Error fetching parameters for
> ParameterProvider[id=29f3dc4a-018b-1000-6ff8-bd02979a0fc6]: Cannot invoke
> "String.length()" because "this.input" is null
> at
> org.apache.nifi.controller.parameter.StandardParameterProviderNode.fetchParameters(StandardParameterProviderNode.java:286)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.getProvidedParameters(VersionedFlowSynchronizer.java:1017)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.getProvidedParameters(VersionedFlowSynchronizer.java:1010)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.createParameterMap(VersionedFlowSynchronizer.java:858)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.addParameterContext(VersionedFlowSynchronizer.java:808)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.inheritParameterContext(VersionedFlowSynchronizer.java:796)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.lambda$inheritParameterContexts$4(VersionedFlowSynchronizer.java:782)
> at
> org.apache.nifi.controller.flow.AbstractFlowManager.withParameterContextResolution(AbstractFlowManager.java:668)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.inheritParameterContexts(VersionedFlowSynchronizer.java:774)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.synchronizeFlow(VersionedFlowSynchronizer.java:405)
> ... 39 common frames omitted
> Caused by: java.lang.NullPointerException: Cannot invoke "String.length()"
> because "this.input" is null
> at java.base/java.net.URI$Parser.parse(URI.java:3186)
> at java.base/java.net.URI.<init>(URI.java:645)
> at java.base/java.net.URI.create(URI.java:930)
> at
> org.apache.nifi.parameter.OnePasswordParameterProvider.fetchParameters(OnePasswordParameterProvider.java:186)
> at
> org.apache.nifi.controller.parameter.StandardParameterProviderNode.fetchParameters(StandardParameterProviderNode.java:284)
> ... 48 common frames omitted {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)