Hello, we are trying to run NiFi Registry in Java 11. Receiving the following error:
Text: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> D:\NiFi\nifi-registry-1.23.2\bin>run-nifi-registry.bat cmd.exe /C "C:\Program Files\CleverDevices\Amazon Corretto\jdk11\bin\java.exe" -cp D:\NiFi\nifi-registry-1.23.2\bin\..\conf;D:\NiFi\nifi-registry-1.23.2\bin\..\lib\*;D:\NiFi\nifi-registry-1.23.2\bin\..\lib\shared\*;D:\NiFi\nifi-registry-1.23.2\bin\..\lib\bootstrap\* -Xms512m -Xmx1024m -Dorg.apache.nifi.registry.bootstrap.config.file=D:\NiFi\nifi-registry-1.23.2\bin\..\conf\bootstrap.conf -Dorg.apache.nifi.registry.bootstrap.config.log.dir=D:\NiFi\nifi-registry-1.23.2\bin\..\logs org.apache.nifi.registry.NiFiRegistry run Apache NiFi _ _ _ __ ___ __ _(_)___| |_ _ __ _ _ | '__/ _ \/ _` | / __| __| '__| | | | | | | __/ (_| | \__ \ |_| | | |_| | |_| \___|\__, |_|___/\__|_| \__, | ==========|___/================|___/= v Server start failed: java.lang.IllegalStateException: Unable to load cache item D:\NiFi\nifi-registry-1.23.2\bin> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> The log contains the following: 2024-03-19 14:26:38,774 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=33ms 2024-03-19 14:26:38,774 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@5170bc02{nifi-registry-docs,/nifi-registry-docs,file:///D:/NiFi/nifi-registry-1.23.2/work/jetty/nifi-registry-web-docs-1.23.2.war/webapp/,AVAILABLE}{.\lib\nifi-registry-web-docs-1.23.2.war} 2024-03-19 14:26:39,008 INFO [main] o.eclipse.jetty.server.AbstractConnector Started ServerConnector@59cba5a{HTTP/1.1, (http/1.1)}{0.0.0.0:18080} 2024-03-19 14:26:39,008 INFO [main] org.eclipse.jetty.server.Server Started @26817ms 2024-03-19 14:26:39,013 ERROR [main] o.apache.nifi.registry.jetty.JettyServer Server start failed java.lang.RuntimeException: java.lang.IllegalStateException: Unable to load cache item at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:69) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:356) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.server.Server.start(Server.java:423) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) at org.eclipse.jetty.server.Server.doStart(Server.java:387) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) at org.apache.nifi.registry.jetty.JettyServer.start(JettyServer.java:93) at org.apache.nifi.registry.NiFiRegistry.<init>(NiFiRegistry.java:110) at org.apache.nifi.registry.NiFiRegistry.main(NiFiRegistry.java:159) Caused by: java.lang.IllegalStateException: Unable to load cache item at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:79) at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134) at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319) at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:572) at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:419) at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:137) at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:109) at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:447) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:268) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:325) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:147) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:748) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174) at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:142) at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:64) ... 21 common frames omitted Caused by: java.lang.ExceptionInInitializerError: null at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:398) at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:604) at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:363) at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:585) at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110) at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108) at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) ... 44 common frames omitted Caused by: java.lang.RuntimeException: Unable to create JAXBContext. at org.apache.nifi.registry.provider.StandardProviderFactory.initializeJaxbContext(StandardProviderFactory.java:73) at org.apache.nifi.registry.provider.StandardProviderFactory.<clinit>(StandardProviderFactory.java:64) ... 54 common frames omitted Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at javax.xml.bind.ContextFinder.find(ContextFinder.java:318) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:478) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:435) at org.apache.nifi.registry.provider.StandardProviderFactory.initializeJaxbContext(StandardProviderFactory.java:71) ... 55 common frames omitted Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:538) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92) at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128) ... 59 common frames omitted 2024-03-19 14:26:39,013 INFO [Thread-0] org.apache.nifi.registry.NiFiRegistry Initiating shutdown of Jetty web server... 2024-03-19 14:26:39,015 INFO [Thread-0] o.eclipse.jetty.server.AbstractConnector Stopped ServerConnector@59cba5a{HTTP/1.1, (http/1.1)}{0.0.0.0:18080} 2024-03-19 14:26:39,015 INFO [Thread-0] org.eclipse.jetty.server.session node0 Stopped scavenging I've tried Java 17 Azul and Java 23 Adoptium, but received the same error. Is there a way to fix this error? Thanks, Ivan Dolinin