Bryan Bende created NIFI-8190:
---------------------------------
Summary: NPE enabling controller services on PG when reference
doesn't exist
Key: NIFI-8190
URL: https://issues.apache.org/jira/browse/NIFI-8190
Project: Apache NiFi
Issue Type: Bug
Reporter: Bryan Bende
Assignee: Bryan Bende
{code:java}
2021-02-01 13:41:34,538 ERROR [Framework Task Thread Thread-3]
org.apache.nifi.engine.FlowEngine Uncaught Exception in Runnable task
java.lang.NullPointerException: null
at
org.apache.nifi.controller.service.StandardControllerServiceProvider.enableControllerServices(StandardControllerServiceProvider.java:237)
at
org.apache.nifi.controller.service.StandardControllerServiceProvider.lambda$enableControllerServicesAsync$0(StandardControllerServiceProvider.java:225)
at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) {code}
Steps to reproduce:
1) Make a flow with CS in root PG, and CS in child PG references the CS in
parent
2) Version control to registry
3) Delete everything from NiFi side
4) Import flow from registry, now have single CS in child, referencing missing
CS
5) Issue curl command to enable services on the child PG:
curl -H "Content-Type: application/json" -X PUT --data "\{ \"id\" :
\"5eddbdcc-0177-1000-22fe-321b6445813b\", \"state\" : \"ENABLED\" }"
http://localhost:8080/nifi-api/flow/process-groups/5eddbdcc-0177-1000-22fe-321b6445813b/controller-services
--
This message was sent by Atlassian Jira
(v8.3.4#803005)