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

Unable to start NiFi on JDK 9

    XMLWordPrintableJSON

Details

    Description

      Built on Java 8. Attempted to run on Java 9. Latest RC for nifi 1.4.0.

      2017-09-25 11:11:20,765 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.util.ServiceConfigurationError: org.apache.nifi.processor.Processor: Provider org.apache.nifi.processors.standard.ParseCEF could not be instantiated
      java.util.ServiceConfigurationError: org.apache.nifi.processor.Processor: Provider org.apache.nifi.processors.standard.ParseCEF could not be instantiated
      at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:581)
      at java.base/java.util.ServiceLoader.access$100(ServiceLoader.java:390)
      at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:799)
      at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721)
      at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1389)
      at org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:142)
      at org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:117)
      at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:701)
      at org.apache.nifi.NiFi.<init>(NiFi.java:160)
      at org.apache.nifi.NiFi.main(NiFi.java:268)
      Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      at org.apache.bval.jsr.ConfigurationImpl.parseValidationXml(ConfigurationImpl.java:357)
      at org.apache.bval.jsr.ConfigurationImpl.createBootstrapConfiguration(ConfigurationImpl.java:349)
      at org.apache.bval.jsr.ConfigurationImpl.prepare(ConfigurationImpl.java:340)
      at org.apache.bval.jsr.ConfigurationImpl.__privileged_doBuildValidatorFactory(ConfigurationImpl.java:329)
      at org.apache.bval.jsr.ConfigurationImpl.doBuildValidatorFactory(ConfigurationImpl.java)
      at org.apache.bval.jsr.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:324)
      at org.apache.nifi.processors.standard.ParseCEF.<init>(ParseCEF.java:179)
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
      at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:777)
      ... 7 common frames omitted
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
      ... 19 common frames omitted

      Parisi found this: http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-May/004309.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            joewitt Joe Witt
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: