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

Downgrade Jakarta Mail to 1.6.7 in Bootstrap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.1
    • 1.17.0, 1.16.2
    • Core Framework
    • None

    Description

      Jakarta Mail 2 included changes to use the new API and implementation classes with the jakarta namespace instead of the javax namespace. Jakarta Mail 2 depends on Jakarta Activation 2, which includes the same namespaces changes. This works for extension components, but creates problems at runtime when running on Java 11 and higher since NiFi includes dependencies on JAXB 2 runtime libraries that require Jakarta Activation 1. The NiFi startup process includes the JAXB 2 runtime libraries when running on Java 11, resulting in class conflicts due to incompatible versions of Jakarta Activation 1 and 2.

      Upgrading JAXB 2 to JAXB 3 requires API and implementation changes that impact a large number of classes, which should be addressed separately. To maintain compatibility with JAXB 2 on Java 11 and higher, Jakarta Mail 2 should be downgraded to Jakarta Mail 1 for the nifi-bootstrap module and the Email Notification Service.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              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 - 0.5h
                  0.5h