Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9861

Stateless ClassLoader isolation does not work on Java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0, 1.16.1
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              turcsanyip Peter Turcsanyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h