[
https://issues.apache.org/jira/browse/NIFI-10219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17565455#comment-17565455
]
David Handermann commented on NIFI-10219:
-----------------------------------------
Thanks for filing this issue and describing a potential solution [~jfrazee]!
The core problem seems to be the fact that jna-platform is already a dependency
of nifi-bootstrap, through nifi-bootstrap-utils. The current assembly
configuration apparently detects the reference for nifi-bootstrap-utils, and
then skips it when evaluating the transitive dependencies through
nifi-property-protection-factory and the Azure implementation. Updating the
assembly configuration sounds like a workable solution. I am going to take a
look at removing jna-platform from nifi-bootstrap-utils, since it is only used
for Process ID retrieval on Windows, on Java 8, and the resulting references
still require a Linux or macOS platform. Removing the dependency from
nifi-bootstrap-utils would be an indirect solution, but it could be cleaner
than having to force jna-platform to be included in both lib/bootstrap and
lib/properties.
> jna-platform missing from ./lib/properties
> ------------------------------------------
>
> Key: NIFI-10219
> URL: https://issues.apache.org/jira/browse/NIFI-10219
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.16.1, 1.16.2, 1.16.3
> Reporter: Joey Frazee
> Assignee: David Handermann
> Priority: Major
>
> NIFI-9883 introduced classloader isolation for sensitive property providers
> and updated the assembly config to output dependencies in ./lib/properties.
> jna-platform, required by azure-identity, isn't getting pulled through so
> when using an Azure sensitive properties provider startup fails with a
> NoClassDefFoundError.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)