You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/29 16:30:00 UTC
[jira] [Commented] (NIFI-9416) NPE when updating parameter context without "inheritedParameterContexts" array
[ https://issues.apache.org/jira/browse/NIFI-9416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450576#comment-17450576 ]
ASF subversion and git services commented on NIFI-9416:
-------------------------------------------------------
Commit a5581562bf0bb86caee78181cc116b0bd6f240a4 in nifi's branch refs/heads/main from Joe Gresock
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a558156 ]
NIFI-9416: Fixing NPE when updating param context without inheritedParameterContexts (#5553)
> NPE when updating parameter context without "inheritedParameterContexts" array
> ------------------------------------------------------------------------------
>
> Key: NIFI-9416
> URL: https://issues.apache.org/jira/browse/NIFI-9416
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.15.0
> Reporter: Joe Gresock
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Client code that submit parameter context updates will likely fail due to the following exception when the "inheritedParameterContexts" array is omitted from the request entity:
> {code:java}
> java.lang.NullPointerException: null
> at org.apache.nifi.web.dao.impl.StandardParameterContextDAO.getInheritedParameterContexts(StandardParameterContextDAO.java:282)
> at org.apache.nifi.web.dao.impl.StandardParameterContextDAO.verifyUpdate(StandardParameterContextDAO.java:296)
> at org.apache.nifi.web.dao.impl.StandardParameterContextDAO$$FastClassBySpringCGLIB$$7099e091.invoke(<generated>)
> at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
> at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
> at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
> at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
> at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
> at org.apache.nifi.web.dao.impl.StandardParameterContextDAO$$EnhancerBySpringCGLIB$$56bae42f.verifyUpdate(<generated>)
> at org.apache.nifi.web.StandardNiFiServiceFacade.verifyUpdateParameterContext(StandardNiFiServiceFacade.java:1190)
> {code}
> Since clients prior to 1.15.0 did not know about inherited parameter contexts, the only workaround is to add "inheritedParameterContexts": []
--
This message was sent by Atlassian Jira
(v8.20.1#820001)