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

Michael W Moser edited comment on NIFI-12213 at 10/11/23 7:19 PM:
------------------------------------------------------------------

I added nifi-utils as a compile dependency in the nifi-ldap-iaa-providers-nar 
pom.xml and this fixes it.

I wonder if any other nar is affected?

[edit] looks like nifi-kerberos-iaa-providers-nar needs this too


was (Author: mosermw):
I added nifi-utils as a compile dependency in the nifi-ldap-iaa-providers-nar 
pom.xml and this fixes it.

I wonder if any other nar is affected?

> Since nifi-bom was introduced, using LdapUserGroupProvider causes NiFi to 
> fail to start
> ---------------------------------------------------------------------------------------
>
>                 Key: NIFI-12213
>                 URL: https://issues.apache.org/jira/browse/NIFI-12213
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Michael W Moser
>            Priority: Major
>             Fix For: 2.latest
>
>
> I built the main branch and tried to use the LdapUserGroupProvider in 
> authorizers.xml.  I get a ClassNotFoundException looking for FormatUtils in 
> nifi-utils.jar.  The nifi-bom marks nifi-utils as provided by 
> nifi-standard-services-api-nar but nifi-ldap-iaa-providers-nar doesn't depend 
> on nifi-standard-services-api-nar.
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: org/apache/nifi/util/FormatUtils
>     at 
> org.apache.nifi.ldap.tenants.LdapUserGroupProvider.setTimeout(LdapUserGroupProvider.java:824)
>     at 
> org.apache.nifi.ldap.tenants.LdapUserGroupProvider.onConfigured(LdapUserGroupProvider.java:166)
>     at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>     at 
> org.apache.nifi.authorization.UserGroupProviderInvocationHandler.invoke(UserGroupProviderInvocationHandler.java:38)
>     at jdk.proxy5/jdk.proxy5.$Proxy59.onConfigured(Unknown Source)
>     at 
> org.apache.nifi.authorization.AuthorizerFactoryBean.loadProviderProperties(AuthorizerFactoryBean.java:198)
>     at 
> org.apache.nifi.authorization.AuthorizerFactoryBean.getObject(AuthorizerFactoryBean.java:167)
>     at 
> org.apache.nifi.authorization.AuthorizerFactoryBean.getObject(AuthorizerFactoryBean.java:71)
>     at 
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169)
>     ... 106 common frames omitted
> Caused by: java.lang.ClassNotFoundException: org.apache.nifi.util.FormatUtils
>     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
>     ... 116 common frames omitted
> {noformat}



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

Reply via email to