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

Scripted controller services throw error on configuration restored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • Extensions
    • None

    Description

      When the framework calls OnConfigurationRestored on a scripted controller service, the following error is thrown:
      2022-07-12 02:48:46,500 ERROR [main] org.apache.nifi.util.ReflectionUtils Can not invoke method 'public void org.apache.nifi.script.AbstractScriptedControllerService.onConfigurationRestored(org.apache.nifi.processor.ProcessContext)' with provided arguments since argument 0 of type 'interface org.apache.nifi.processor.ProcessContext' is not assignable from provided value of type 'class org.apache.nifi.controller.service.StandardConfigurationContext'.
      This is due to the AbstractScriptedControllerService using a ProcessContext argument instead of a ConfigurationContext argument.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              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