Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5174 NiFi Compatibility with Java 11
  3. NIFI-5175

NiFi built with Java 1.8 needs to run on Java 9+

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 1.7.0
    • None
    • None

    Description

      The following issues have been encountered while attempting to run a Java 1.8-built NiFi on Java 9:

      Issue Solution Status
      JAXB classes cannot be found on the classpath Add "--add-modules=java.xml.bind" to the commant that starts NiFi Done
      NiFI boostrap not able to determine PID, restarts nifi after nifi.sh stop Detect if NiFi is running on Java 9, and reflectively invoke Process.pid(), which was newly added to the Process API in Java 9 Done

       


       

      Unaddressed issues/warnings with NiFi compiled on Java 1.8 running on Java 9+ Description Solution
      WARNING: An illegal reflective access operation has occurred
      ...specific class usage snipped...
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      Reflective invocations are common in the code used in NiFi and its dependencies in Java 1.8 Full compliant migration to Java 9 and use dependencies that are Java 9 compliant

      Attachments

        Issue Links

          Activity

            People

              jtstorck Jeff Storck
              jtstorck Jeff Storck
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: