You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Wicks (JIRA)" <ji...@apache.org> on 2018/11/15 16:44:00 UTC
[jira] [Created] (NIFI-5822) ControllerServices not available
during @OnScheduled
Peter Wicks created NIFI-5822:
---------------------------------
Summary: ControllerServices not available during @OnScheduled
Key: NIFI-5822
URL: https://issues.apache.org/jira/browse/NIFI-5822
Project: Apache NiFi
Issue Type: Bug
Reporter: Peter Wicks
If a processor tries to load a ControllerService during `@OnScheduled`, then `context.getControllerService` contains a null reference to `controllerServiceProvider`. I traced this back to `StandardProcessScheduler.startProcessor`, and the reference to `controllerServiceProvider` is also `null` here. `ExecuteSQL` acquires it's connection during `@OnScheduled`.
But once we reach `onTrigger`, everything is fine and you can retrieve a controller service without issue
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)