Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.16.0, 1.16.1
-
None
-
Centos7, java 11.0.14, standalone
Description
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):
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
This is probably regression from #NIFI-9601.
Attachments
Issue Links
- is caused by
-
NIFI-9601 Upgrade NiFi Bootstrap to Jakarta Mail 2
- Resolved
- is related to
-
NIFI-10026 Add jakarta.actvation runtime dependency to bootstrap
- Resolved
- links to