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

Stateless fails to run on Java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13.2
    • 1.15.0
    • None
    • None

    Description

      /usr/local/openjdk-11/bin/java -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/nifi/nifi-current/logs -Dlogback.configurationFile=/opt/nifi/nifi-current/conf/stateless-logback.xml -cp '/opt/nifi/nifi-current/lib/*:/opt/nifi/nifi-current/conf' -Xms1024m -Xmx1024m org.apache.nifi.stateless.bootstrap.RunStatelessFlow /tmp/engine.properties /tmp/flow.properties 
      2021-04-23 13:24:43,539 INFO [main] o.a.n.s.bootstrap.StatelessBootstrap Unpacked NAR files in 7339 millis2021-04-23 13:24:43,706 INFO [main] o.a.n.s.c.PropertiesFileFlowDefinitionParser Fetching flow from NiFi Registry at http://nifi-registry.processing:18080Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement    at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:139)    at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:126)    at org.apache.nifi.registry.client.impl.JerseyNiFiRegistryClient.jacksonJaxbJsonProvider(JerseyNiFiRegistryClient.java:352)    at org.apache.nifi.registry.client.impl.JerseyNiFiRegistryClient.<init>(JerseyNiFiRegistryClient.java:116)    at org.apache.nifi.registry.client.impl.JerseyNiFiRegistryClient.<init>(JerseyNiFiRegistryClient.java:59)    at org.apache.nifi.registry.client.impl.JerseyNiFiRegistryClient$Builder.build(JerseyNiFiRegistryClient.java:342)    at org.apache.nifi.stateless.core.RegistryUtil.getRegistryClient(RegistryUtil.java:100)    at org.apache.nifi.stateless.core.RegistryUtil.getFlowClient(RegistryUtil.java:74)    at org.apache.nifi.stateless.core.RegistryUtil.getLatestVersion(RegistryUtil.java:69)    at org.apache.nifi.stateless.core.RegistryUtil.getFlowByID(RegistryUtil.java:56)    at org.apache.nifi.stateless.config.PropertiesFileFlowDefinitionParser.fetchFlowFromRegistry(PropertiesFileFlowDefinitionParser.java:397)    at org.apache.nifi.stateless.config.PropertiesFileFlowDefinitionParser.fetchVersionedFlowSnapshot(PropertiesFileFlowDefinitionParser.java:345)    at org.apache.nifi.stateless.config.PropertiesFileFlowDefinitionParser.parseFlowDefinition(PropertiesFileFlowDefinitionParser.java:98)    at org.apache.nifi.stateless.config.PropertiesFileFlowDefinitionParser.parseFlowDefinition(PropertiesFileFlowDefinitionParser.java:85)    at org.apache.nifi.stateless.bootstrap.StatelessBootstrap.parseDataflowDefinition(StatelessBootstrap.java:67)    at org.apache.nifi.stateless.bootstrap.RunStatelessFlow.createDataflow(RunStatelessFlow.java:102)    at org.apache.nifi.stateless.bootstrap.RunStatelessFlow.main(RunStatelessFlow.java:50)Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlElement    at java.base/java.net.URLClassLoader.findClass(Unknown Source)    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)    ... 17 more 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: