Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10020

Failed to send bootstrap notification due to java.lang.NoClassDefFoundError: jakarta/activation/DataHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.0, 1.16.1
    • 1.17.0, 1.16.2
    • Core Framework
    • 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

          Activity

            People

              exceptionfactory David Handermann
              Kirhold Wiktor Kubicki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m