Mark Payne created NIFI-5609:
--------------------------------
Summary: NPE thrown if user attempts to view Status History too
early
Key: NIFI-5609
URL: https://issues.apache.org/jira/browse/NIFI-5609
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Reporter: Mark Payne
I started NiFi and then quickly went to the UI and right-clicked on a processor
and tried to view Status History. I got back an error. The user-logs show the
following (partial) stack trace:
{code:java}
2018-09-19 13:20:19,928 ERROR [NiFi Web Server-24]
o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
java.lang.NullPointerException. Returning Internal Server Error response.
java.lang.NullPointerException: null
at
org.apache.nifi.controller.status.history.StatusHistoryUtil.createStatusHistoryDTO(StatusHistoryUtil.java:39)
at
org.apache.nifi.controller.FlowController.getProcessorStatusHistory(FlowController.java:5066)
at
org.apache.nifi.controller.FlowController.getProcessorStatusHistory(FlowController.java:5062)
at
org.apache.nifi.web.controller.ControllerFacade.getProcessorStatusHistory(ControllerFacade.java:299)
at
org.apache.nifi.web.controller.ControllerFacade$$FastClassBySpringCGLIB$$5a42ba54.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
at
org.apache.nifi.web.controller.ControllerFacade$$EnhancerBySpringCGLIB$$8aeed060.getProcessorStatusHistory(<generated>)
at
org.apache.nifi.web.StandardNiFiServiceFacade.getProcessorStatusHistory(StandardNiFiServiceFacade.java:2950)
at
org.apache.nifi.web.StandardNiFiServiceFacade$$FastClassBySpringCGLIB$$358780e0.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)