You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2022/04/01 16:59:00 UTC

[jira] [Assigned] (NIFI-9861) Stateless ClassLoader isolation does not work on Java 11

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

Mark Payne reassigned NIFI-9861:
--------------------------------

    Assignee: Mark Payne

> Stateless ClassLoader isolation does not work on Java 11
> --------------------------------------------------------
>
>                 Key: NIFI-9861
>                 URL: https://issues.apache.org/jira/browse/NIFI-9861
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Peter Turcsanyi
>            Assignee: Mark Payne
>            Priority: Major
>
> Stateless ClassLoader isolation implementation (NIFI-9576) expects that the system class loader is an {{URLClassLoader}} instance but it is not true for Java 11. Due to this, {{BlockListClassLoader}} gets initialized with an empty set of classes and it cannot block anything (there is no isolation, otherwise it works on Java 11 as before NIFI-9576)
> [https://github.com/apache/nifi/blob/7fde2bbfd1afdd6037765340eca9fc675542323e/nifi-stateless/nifi-stateless-bootstrap/src/main/java/org/apache/nifi/stateless/bootstrap/StatelessBootstrap.java#L150-L153]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)