Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9470

nifi set-param not working in nifi 1.15.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.15.0
    • 1.17.0, 1.16.2
    • Core Framework
    • None
    • Official apache/nifi:1.15.0 Docker image with openjdk-11-jdk added

    Description

      It 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:

      % 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. 

       

      nifi-user.log contains the following:

      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>)
       

       

       

       

       

       

       

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Chris S Chris Sampson
              stijngoedertier Stijn Goedertier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h