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

Add java11+ support for MiNiFi

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • MiNiFi
    • None

    Description

      Java 9 deprecated the JAXB, and Java 11 deleted the JAXB completely, so we get the following error during startup:

      2022-07-11 08:34:56,637 ERROR [MiNiFi logging handler] org.apache.nifi.minifi.StdErr Failed to start flow service: Unable to load flow due to: java.lang.RuntimeException: Unable to create JAXBContext: Implementation of JAXB-API has not been found on module path or classpath.
      2022-07-11 08:34:56,638 ERROR [MiNiFi logging handler] org.apache.nifi.minifi.StdErr Shutting down... 

      To fix it, we have to include the JAXB dependencies manually (similarly as we do for NiFi / NiFi registry).

      Attachments

        Issue Links

          Activity

            People

              ferdei Ferenc Erdei
              ferdei Ferenc Erdei
              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