[ 
https://issues.apache.org/jira/browse/NIFI-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16621200#comment-16621200
 ] 

ASF subversion and git services commented on NIFI-5609:
-------------------------------------------------------

Commit 3dd548e807c80749a99f83e18857cab879cd9c21 in nifi's branch 
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=3dd548e ]

NIFI-5609: Fixed NullPointer when attempting to view status history for a 
component that has not yet run

Signed-off-by: Matthew Burgess <[email protected]>

This closes #3012


> 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
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.8.0
>
>
> 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)

Reply via email to