Support Questions

Find answers, ask questions, and share your expertise

ERROR FlowController Failed to capture component stats for Stats History in a brand new 1.13 instance



I am deploying NIFI 1.13.0 on Windows 10 and Windows Server and as soon as the instance is active it starts logging the following error:




2021-03-05 15:57:39,728 ERROR [Timer-Driven Process Thread-5] o.apache.nifi.controller.FlowController Failed to capture component stats for Stats History
java.lang.NullPointerException: null
at org.apache.nifi.diagnostics.SystemDiagnostics.getOpenFileHandles(
at org.apache.nifi.controller.FlowController.getNodeStatusSnapshot(
at org.apache.nifi.controller.FlowController.access$400(
at org.apache.nifi.controller.FlowController$
at org.apache.nifi.engine.FlowEngine$
at java.base/java.util.concurrent.Executors$
at java.base/java.util.concurrent.FutureTask.runAndReset(
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/



This behavior is the same in an open box instance (without any configuration) and in secured instances (tls-toolkit); and at first glance it doesn't seem to have any impact on the behavior of the instance functionality, but it causes rapid growth of the nifi-app.log file and makes it difficult to read.


This error does not appear in 1.12.


I'll appreciate your help.






facing the same issue on Windows


Issue still present in 1.13.2. No workaround yet.


It appears that will be fixed in 1.14 according to Jira NIFI-8400