[
https://issues.apache.org/jira/browse/NIFI-10164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-10164.
-----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> Missing internal libraries while running bootstrap HttpNotificationService
> --------------------------------------------------------------------------
>
> Key: NIFI-10164
> URL: https://issues.apache.org/jira/browse/NIFI-10164
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.16.3
> Reporter: Martin
> Priority: Major
>
> Configured a bootstrap [HTTP Notification
> Service|https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#http-notification-service],
> and ran in to an issue with internal nifi libraries (NoClassDefFoundError).
> Seems like (at least) nifi-properties-1.16.3.jar is missing from the internal
> bootstrap library in lib/bootstrap.
> Running this command during startup solved my issue:
> {code:java}
> cp "${NIFI_HOME}"/lib/nifi-properties-1.16.3.jar
> "${NIFI_HOME}"/lib/bootstrap/nifi-properties-1.16.3.jar {code}
> bootstrap-notifications-services.xml:
> {code:java}
> <services>
> <service>
> <id>slack-notification</id>
>
> <class&amp;amp;amp;amp;gt;org.apache.nifi.bootstrap.notification.http.HttpNotificationService</class&amp;amp;amp;amp;gt;
> <property name="URL">SLACK_WEBHOOK_URL</property>
> <property name="Truststore Filename">./conf/truststore.jks</property>
> <property name="Truststore Type">JKS</property>
> <property name="Truststore
> Password">NIFI_SECURITY_TRUSTSTORE_PASSWORD</property>
> <property name="Keystore Filename">./conf/keystore.jks</property>
> <property name="Keystore Type">JKS</property>
> <property name="Keystore
> Password">NIFI_SECURITY_KEYSTORE_PASSWORD</property>
> <property name="Key Password">NIFI_SECURITY_KEY_PASSWORD</property>
> <property name="notification.timestamp">${now()}</property>
> </service>
> </services> {code}
> Exception:
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/nifi/util/StringUtils
> at
> org.apache.nifi.security.util.StandardTlsConfiguration.isStorePopulated(StandardTlsConfiguration.java:477)
> at
> org.apache.nifi.security.util.StandardTlsConfiguration.isStoreValid(StandardTlsConfiguration.java:486)
> at
> org.apache.nifi.security.util.StandardTlsConfiguration.isTruststoreValid(StandardTlsConfiguration.java:383)
> at
> org.apache.nifi.security.util.SslContextFactory.getTrustManagers(SslContextFactory.java:174)
> at
> org.apache.nifi.security.util.SslContextFactory.getX509TrustManager(SslContextFactory.java:102)
> at
> org.apache.nifi.bootstrap.notification.http.HttpNotificationService.init(HttpNotificationService.java:198)
> at
> org.apache.nifi.bootstrap.notification.AbstractNotificationService.initialize(AbstractNotificationService.java:27)
> at
> org.apache.nifi.bootstrap.NotificationServiceManager.createService(NotificationServiceManager.java:365)
> at
> org.apache.nifi.bootstrap.NotificationServiceManager.loadNotificationServices(NotificationServiceManager.java:133)
> at org.apache.nifi.bootstrap.RunNiFi.loadServices(RunNiFi.java:397)
> at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:169)
> at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:286)
> Caused by: java.lang.ClassNotFoundException: org.apache.nifi.util.StringUtils
> at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> ... 12 more {code}
>
> Slack thread for reference:
> [https://apachenifi.slack.com/archives/C0L9VCD47/p1656003162860329]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)