[ 
https://issues.apache.org/jira/browse/NIFI-10031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17538915#comment-17538915
 ] 

ASF subversion and git services commented on NIFI-10031:
--------------------------------------------------------

Commit 85d5e2071bec6ac5ee1873440189ec5bbf006ac4 in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=85d5e2071b ]

NIFI-10031 Downgraded Jakarta Mail from 2.0.1 to 1.6.7 (#6052)

- Downgraded Jakarta Activation from 2.0.1 to 1.2.2 in nifi-bootstrap
- Updated assembly configurations to include Jakarta Activation in java11 
directory

> 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