Bob Paulin created NIFI-15874:
---------------------------------

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


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)

Reply via email to