Bryan Bende created NIFI-13608:
----------------------------------

             Summary: NPE from Empty All Queues when there is no data to drop
                 Key: NIFI-13608
                 URL: https://issues.apache.org/jira/browse/NIFI-13608
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.0.0-M4
            Reporter: Bryan Bende


{code:java}
java.lang.NullPointerException: Cannot invoke 
"org.apache.nifi.controller.queue.DropFlowFileStatus.getRequestIdentifier()" 
because "dropRequest" is null
    at 
org.apache.nifi.web.api.dto.DtoFactory.createDropRequestDTO(DtoFactory.java:546)
    at 
org.apache.nifi.web.StandardNiFiServiceFacade.createDropAllFlowFilesInProcessGroup(StandardNiFiServiceFacade.java:2323)
    at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:354)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
    at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
    at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
    at 
org.apache.nifi.web.NiFiServiceFacadeLock.proceedWithWriteLock(NiFiServiceFacadeLock.java:179)
    at 
org.apache.nifi.web.NiFiServiceFacadeLock.createLock(NiFiServiceFacadeLock.java:42)
    at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:637)
    at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:627)
    at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:71)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
    at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
    at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
    at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
    at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:720)
    at 
org.apache.nifi.web.StandardNiFiServiceFacade$$SpringCGLIB$$0.createDropAllFlowFilesInProcessGroup(<generated>)
    at 
org.apache.nifi.web.api.ProcessGroupResource.lambda$createEmptyAllConnectionsRequest$7(ProcessGroupResource.java:633)
 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to