You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2021/02/01 20:49:00 UTC

[jira] [Resolved] (NIFI-8190) NPE enabling controller services on PG when reference doesn't exist

     [ https://issues.apache.org/jira/browse/NIFI-8190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Payne resolved NIFI-8190.
------------------------------
    Fix Version/s: 1.13.0
       Resolution: Fixed

> 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
>            Priority: Minor
>             Fix For: 1.13.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {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)