You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andrew Atwood (Jira)" <ji...@apache.org> on 2021/10/06 17:44:00 UTC
[jira] [Commented] (NIFI-9282) Support running with Java 17
[ https://issues.apache.org/jira/browse/NIFI-9282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17425124#comment-17425124 ]
Andrew Atwood commented on NIFI-9282:
-------------------------------------
tried building with 11, but when running with 17, nifi fails to start with error
{noformat}
2021-10-06 17:41:36,780 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @720f29f0
org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @720f29f0
at org.xerial.snappy.SnappyLoader.injectSnappyNativeLoader(SnappyLoader.java:297)
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:227)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:48)
at org.apache.nifi.processors.hive.PutHiveStreaming.<clinit>(PutHiveStreaming.java:158)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at org.apache.nifi.nar.StandardExtensionDiscoveringManager.getClass(StandardExtensionDiscoveringManager.java:330)
at org.apache.nifi.documentation.DocGenerator.documentConfigurableComponent(DocGenerator.java:100)
at org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:65)
at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1136)
at org.apache.nifi.NiFi.<init>(NiFi.java:170)
at org.apache.nifi.NiFi.<init>(NiFi.java:82)
at org.apache.nifi.NiFi.main(NiFi.java:331)
{noformat}
> Support running with Java 17
> ----------------------------
>
> Key: NIFI-9282
> URL: https://issues.apache.org/jira/browse/NIFI-9282
> Project: Apache NiFi
> Issue Type: Sub-task
> Reporter: Andrew Atwood
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)