David Handermann created NIFI-10031:
---------------------------------------

             Summary: Downgrade Jakarta Mail to 1.6.7 in Bootstrap
                 Key: NIFI-10031
                 URL: https://issues.apache.org/jira/browse/NIFI-10031
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.16.1
            Reporter: David Handermann
            Assignee: David Handermann
             Fix For: 1.17.0, 1.16.2


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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to