Greetings,

I am observing a potential return of ticket 7012 in NiFi 1.15.3.

References:

https://issues.apache.org/jira/browse/NIFI-7012

https://stackoverflow.com/questions/64750710/nifi-fails-to-start-after-setting-sensitive-parameter-into-non-sensitive-propert



On initial startup of NiFi 1.15.3 on my project’s flow, NiFi fails to start due 
to the below stacktrace. This relates to a sensitive parameter context property 
for a sensitive field in a MongoDBControllerService. As a result, this appears 
to me as the same error as the referenced defect ticket above. I tried a couple 
different things to get past this error, including one from the stackoverflow 
reference above, but that caused unwanted problems.  The most graceful 
technique I found was to string-replace my prior version of NiFi (1.13.2) with 
1.15.3 within the raw flow XML for at least all the mongo processors’ 
MongoDBControllerServices, This relates to NiFi-packaged mongo processors and 
my project’s open-source mongo processors. However, in attempting this 
string-replace, I admit I may have also string-replaced additional items beyond 
the various MongoDBControllerServices that had 1.13.2 marked to achieve a 
successful start-up of NiFi and successful execution of all mongo processors at 
runtime.  While this change did seem to work, I would like to confirm that it 
is necessary to do this work-around for successful start-up, or am I missing 
something?

Environment:

Mac OS x86

Java:  OpenJDK version 1.8.0_322

NiFi: 1.15.3

MongoDB (mongodb-driver-legacy) drivers for custom processors and NiFi-packaged 
MongoDB processers:  4.3.2, but our prior custom processors had used 3.12.5

MongoDB:  4.2.8





2022-01-25 19:34:02,809 WARN [main] org.apache.nifi.web.server.JettyServer 
Failed to start web server... shutting down.

org.apache.nifi.controller.serialization.FlowSynchronizationException: 
java.lang.IllegalArgumentException: The property 'mongo-uri' is a sensitive 
property, so it can only reference Parameters that are sensitive.

       at 
org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:306)

       at 
org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1475)

       at 
org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:89)

       at 
org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:810)

       at 
org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:539)

       at 
org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:67)

       at 
org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067)

       at 
org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:5



Regards,

--
Jeremy H. Taylor
Software Developer
ACES Incorporated, an EverWatch Company
http://acesinc.net<http://acesinc.net/>
http://everwatchsolutions.com<http://everwatchsolutions.com/>

Reply via email to