Wiktor Kubicki created NIFI-10020:
-------------------------------------
Summary: Failed to send 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.1, 1.16.0
Environment: Centos7, java 11.0.14, standalone
Reporter: Wiktor Kubicki
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)