diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java index 13a01bbe2b..8c1cb9bdbe 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java @@ -418,12 +418,16 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R try { this.provenanceEventRepository = createProvenanceRepository(properties); this.provenanceEventRepository.initialize(createEventReporter(bulletinRepository)); - - this.contentRepository = createContentRepository(properties); } catch (final Exception e) { throw new RuntimeException("Unable to create Provenance Repository", e); } + try { + this.contentRepository = createContentRepository(properties); + } catch (final Exception e) { + throw new RuntimeException("Unable to create Content Repository", e); + } + try { this.stateManagerProvider = StandardStateManagerProvider.create(properties); } catch (final IOException e) { @@ -735,7 +739,7 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R private ContentRepository createContentRepository(final NiFiProperties properties) throws InstantiationException, IllegalAccessException, ClassNotFoundException { final String implementationClassName = properties.getProperty(NiFiProperties.CONTENT_REPOSITORY_IMPLEMENTATION, DEFAULT_CONTENT_REPO_IMPLEMENTATION); if (implementationClassName == null) { - throw new RuntimeException("Cannot create Provenance Repository because the NiFi Properties is missing the following property: " + throw new RuntimeException("Cannot create Content Repository because the NiFi Properties is missing the following property: " + NiFiProperties.CONTENT_REPOSITORY_IMPLEMENTATION); }