You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Stijn Goedertier (Jira)" <ji...@apache.org> on 2021/12/09 20:38:00 UTC
[jira] [Created] (NIFI-9470) nifi set-param not working in nifi 1.15.0
Stijn Goedertier created NIFI-9470:
--------------------------------------
Summary: nifi set-param not working in nifi 1.15.0
Key: NIFI-9470
URL: https://issues.apache.org/jira/browse/NIFI-9470
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 1.15.0
Environment: Official nifi Docker image, Java11 added
Reporter: Stijn Goedertier
I seems no longer possible to create or update parameters of a parameter context in the latest version of nifi (1.15.0).
The below commands illustrate when the error occurs:
{code:java}
% cli.sh nifi create-param-context -p connection.properties -pcn pc_my_param_context
a0d5b874-017d-1000-9e04-02255ef2eb50
% cli.sh nifi list-param-contexts -p connection.properties
# Id Name Inherited Param Contexts Description
- ------------------------------------ ------------------- ------------------------ -----------
1 a0d5b874-017d-1000-9e04-02255ef2eb50 pc_my_param_context (empty)
% cli.sh nifi set-param -p connection.properties -pcid a0d5b874-017d-1000-9e04-02255ef2eb50 -pn pa_my_param -pv a_value -ps false
ERROR: Error executing command 'set-param' : Error creating parameter context update request: An unexpected error has occurred. Please check the logs for additional details. {code}
nifi-user.log contains the following:
{code:java}
2021-12-09 20:15:00,719 INFO [NiFi Web Server-249] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 172.29.0.1 [CN=localhost, OU=NIFI] POST https://localhost:8443/nifi-api/parameter-contexts
2021-12-09 20:15:00,721 INFO [NiFi Web Server-249] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [CN=localhost, OU=NIFI] 172.29.0.1 POST https://localhost:8443/nifi-api/parameter-contexts
2021-12-09 20:15:36,449 INFO [NiFi Web Server-277] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 172.29.0.1 [CN=localhost, OU=NIFI] GET https://localhost:8443/nifi-api/flow/parameter-contexts
2021-12-09 20:15:36,449 INFO [NiFi Web Server-277] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [CN=localhost, OU=NIFI] 172.29.0.1 GET https://localhost:8443/nifi-api/flow/parameter-contexts
2021-12-09 20:16:31,239 INFO [NiFi Web Server-180] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 172.29.0.1 [CN=localhost, OU=NIFI] GET https://localhost:8443/nifi-api/parameter-contexts/a0d5b874-017d-1000-9e04-02255ef2eb50
2021-12-09 20:16:31,239 INFO [NiFi Web Server-180] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [CN=localhost, OU=NIFI] 172.29.0.1 GET https://localhost:8443/nifi-api/parameter-contexts/a0d5b874-017d-1000-9e04-02255ef2eb50
2021-12-09 20:16:31,525 INFO [NiFi Web Server-118] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 172.29.0.1 [CN=localhost, OU=NIFI] POST https://localhost:8443/nifi-api/parameter-contexts/a0d5b874-017d-1000-9e04-02255ef2eb50/update-requests
2021-12-09 20:16:31,525 INFO [NiFi Web Server-118] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [CN=localhost, OU=NIFI] 172.29.0.1 POST https://localhost:8443/nifi-api/parameter-contexts/a0d5b874-017d-1000-9e04-02255ef2eb50/update-requests
2021-12-09 20:16:31,528 ERROR [NiFi Web Server-118] 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.web.dao.impl.StandardParameterContextDAO.getInheritedParameterContexts(StandardParameterContextDAO.java:235)
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$$39dc4be0.getInheritedParameterContexts(<generated>)
at org.apache.nifi.web.StandardNiFiServiceFacade.setEffectiveParameterUpdates(StandardNiFiServiceFacade.java:1454)
at org.apache.nifi.web.StandardNiFiServiceFacade.getComponentsAffectedByParameterContextUpdate(StandardNiFiServiceFacade.java:1392)
at org.apache.nifi.web.StandardNiFiServiceFacade.getComponentsAffectedByParameterContextUpdate(StandardNiFiServiceFacade.java:1382)
at org.apache.nifi.web.StandardNiFiServiceFacade$$FastClassBySpringCGLIB$$358780e0.invoke(<generated>)
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)