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 2026/04/24 00:27:00 UTC

[jira] [Commented] (NIFI-15874) Processors with RequiresInstanceClassLoading Classloading are failing to get Instance ClassLoader during verify

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

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

Commit fa0a58d31827535134507733083373e574013bfe in nifi's branch refs/heads/main from Bob Paulin
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fa0a58d3182 ]

NIFI-15874: FQ class name to ExtensionManager to get InstanceClassloader (#11176)

> Processors with RequiresInstanceClassLoading Classloading are failing to get Instance ClassLoader during verify
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15874
>                 URL: https://issues.apache.org/jira/browse/NIFI-15874
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Bob Paulin
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When processors that have @RequiresInstanceClassLoading should be provided with an instance classloader when verifyConfiguration is called[1].  The code has a subtle bug where the getComponentType() is passed that only includes the unqualified class name (ex MyClass) rather than the fully qualified class name ex (org.apache.MyClass).  This causes the StandardExtensionDiscoveringManager to not find it's TempComponent which expects a fully qualified class name so it determines an InstanceClassLoader is not required [2].  This is not an issue with ControllerServices where the FQ Classname is passed.
>  
>  
>  [1][https://github.com/apache/nifi/blob/0f27d89b7f324bbb4af1b08f43f83b93549b3349/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/StandardProcessorNode.java#L1027]
> [2][https://github.com/apache/nifi/blob/0f27d89b7f324bbb4af1b08f43f83b93549b3349/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/StandardExtensionDiscoveringManager.java#L529]
> [3][https://github.com/apache/nifi/blob/0f27d89b7f324bbb4af1b08f43f83b93549b3349/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceNode.java#L551]
>  
>  
>  



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