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 2022/07/14 15:50:00 UTC

[jira] [Commented] (NIFI-10231) Scripted controller services throw error on configuration restored

    [ https://issues.apache.org/jira/browse/NIFI-10231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566897#comment-17566897 ] 

ASF subversion and git services commented on NIFI-10231:
--------------------------------------------------------

Commit d0db4c44bb71acc76141df29205a28c18c7faa47 in nifi's branch refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d0db4c44bb ]

NIFI-10231: Change AbstractScriptedControllerService.OnConfigurationRestored to use ConfigurationContext (#6207)



> Scripted controller services throw error on configuration restored
> ------------------------------------------------------------------
>
>                 Key: NIFI-10231
>                 URL: https://issues.apache.org/jira/browse/NIFI-10231
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.



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