[ 
https://issues.apache.org/jira/browse/NIFI-10031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-10031:
------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> 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
>            Priority: Major
>             Fix For: 1.17.0, 1.16.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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