[
https://issues.apache.org/jira/browse/NIFI-10020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17536672#comment-17536672
]
David Handermann commented on NIFI-10020:
-----------------------------------------
Thanks for the response [~Kirhold]. The jakarta-activation libraries in
lib/bootstrap are the ones impacting the behavior. The next release candidate
for 1.16.2 should be ready soon, so feel free to follow up if you notice
additional issues in that version.
> Failed to send bootstrap notification due to java.lang.NoClassDefFoundError:
> jakarta/activation/DataHandler
> -----------------------------------------------------------------------------------------------------------
>
> Key: NIFI-10020
> URL: https://issues.apache.org/jira/browse/NIFI-10020
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.16.0, 1.16.1
> Environment: Centos7, java 11.0.14, standalone
> Reporter: Wiktor Kubicki
> Assignee: David Handermann
> Priority: Major
> Fix For: 1.17.0, 1.16.2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> After upgrade from 1.15.3 to 1.16.0 (and 1.16.1 too) nifi does not send
> bootstrap email notification (NIFI_STARTED/NIFI_STOPPED):
>
> {code:java}
> 2022-05-11 18:26:44,446 ERROR [Notification Service Dispatcher]
> o.a.n.b.NotificationServiceManager Failed to send notification of type
> NIFI_STOPPED to EmailNotificationService[id=email-notification] with Subject
> NiFi Stopped on Host (...) due to java.lang.NoClassDefFoundError:
> jakarta/activation/DataHandler. Will
> 2022-05-11 18:26:44,451 ERROR [Notification Service Dispatcher]
> o.a.n.b.NotificationServiceManager
> java.lang.NoClassDefFoundError: jakarta/activation/DataHandler
> at
> org.apache.nifi.bootstrap.notification.email.EmailNotificationService.notify(EmailNotificationService.java:203)
> at
> org.apache.nifi.bootstrap.NotificationServiceManager$2.run(NotificationServiceManager.java:200)
> at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829)
> Caused by: java.lang.ClassNotFoundException: jakarta.activation.DataHandler
> at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
> at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
> ... 8 common frames omitted
> 2022-05-11 18:26:44,452 INFO [Notification Service Dispatcher]
> o.a.n.b.NotificationServiceManager After failing to send notification to
> EmailNotificationService[id=email-notification] 1 times, will attempt again
> in 1 minute
> {code}
>
> This is probably regression from #NIFI-9601.
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)