Hi, The error message indicates that the class file version is not compatible with the version of Java you have installed. The reason for this is that NiFi 2.0 requires Java 21 as mentioned by Pierre<https://medium.com/cloudera-inc/getting-ready-for-apache-nifi-2-0-5a5e6a67f450#:~:text=NiFi%202.0%20will%20only%20support,your%20NiFi%20nodes%20before%20upgrading.>. However, based on the error message, it seems you're using Java 11, which only recognizes class file versions up to 55.0. To resolve this issue, you will need to upgrade your Java version to Java 21 before attempting to run NiFi 2.0.
Best Regards, Lehel ________________________________ From: Adi Yusman Bin Md Yusof <[email protected]> Sent: Tuesday, February 20, 2024 5:00 To: Muhammad Syafiq Bin Mohd Sopian <[email protected]>; [email protected] <[email protected]> Cc: Nornikman Bin Abdul Rahim <[email protected]> Subject: RE: Nifi Unix Installation Hi Nifi dev team, We manage to install the Nifi and is actively running but we’re experiencing below error: HTTP ERROR 400 Invalid SNI URI: https://XX.XXX.XXX.XXX:8443/nifi STATUS: 400 MESSAGE: Invalid SNI CAUSED BY: org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI Caused by: org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI at org.eclipse.jetty.server.SecureRequestCustomizer.checkSni(SecureRequestCustomizer.java:229) at org.eclipse.jetty.server.SecureRequestCustomizer.newSecureRequest(SecureRequestCustomizer.java:208) at org.eclipse.jetty.server.SecureRequestCustomizer.customize(SecureRequestCustomizer.java:197) at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:587) at org.eclipse.jetty.util.thread.Invocable$ReadyTask.run(Invocable.java:105) at org.eclipse.jetty.http2.server.internal.HttpStreamOverHTTP2$1.run(HttpStreamOverHTTP2.java:123) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:195) at org.eclipse.jetty.http2.HTTP2Connection.produce(HTTP2Connection.java:211) at org.eclipse.jetty.http2.server.internal.HTTP2ServerConnection.onOpen(HTTP2ServerConnection.java:115) at org.eclipse.jetty.io.AbstractEndPoint.upgrade(AbstractEndPoint.java:435) at org.eclipse.jetty.server.NegotiatingServerConnection.onFillable(NegotiatingServerConnection.java:126) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99) at org.eclipse.jetty.io.ssl.SslConnection$SslEndPoint.onFillable(SslConnection.java:574) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:390) at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:150) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:195) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:971) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1201) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1156) at java.base/java.lang.Thread.run(Thread.java:1583) Help to advice. Best regards, Adi Yusman Md Yusof Strategic Data Management, Maybank Shared Services Sdn Bhd, 43rd Floor, Menara Maybank, 100 Jalan Tun Perak, 50050 Kuala Lumpur. Mobile Phone : 0133740943 | email : [email protected]<mailto:[email protected]> Confluence: https://confluence.maybank.com.my/pages/viewpage.action?pageId=159128922 Advanced Leave Notification: None ~ For Propriety and Internal Use ~ [branding] From: Muhammad Syafiq Bin Mohd Sopian <[email protected]> Sent: Tuesday, 20 February, 2024 02:41 PM To: [email protected] Cc: Adi Yusman Bin Md Yusof <[email protected]>; Nornikman Bin Abdul Rahim <[email protected]> Subject: Nifi Unix Installation Hi Nifi Dev team , Im trying to install Nifi at one of our server but we encounter java issue. Eventho Java is already at its latest version , it is still not working. Need your advice on this. Java home: /usr/lib/jvm/java-11-openjdk-11.0.22.0.7-1.el7_9.x86_64/ NiFi home: /opt/Nifi/nifi-2.0.0-M2 Bootstrap Config File: /opt/Nifi/nifi-2.0.0-M2/conf/bootstrap.conf Error: LinkageError occurred while loading main class org.apache.nifi.bootstrap.RunNiFi java.lang.UnsupportedClassVersionError: org/apache/nifi/bootstrap/RunNiFi has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 55.0 Best regards, Muhammad Syafiq Mohd Sopian Strategic Data Management, Maybank Shared Services Sdn Bhd, 43rd Floor, Menara Maybank, 100 Jalan Tun Perak, 50050 Kuala Lumpur, MALAYSIA Mobile Phone : 0172376017 | email : [email protected]<mailto:[email protected]> Advanced Leave Notification: None ________________________________ This message is intended only for the use of the person to whom it is expressly addressed and for the purpose of the subject of this email and may contain information that is confidential and legally privileged. If you are not the intended recipient, you are hereby notified that any use, reliance on, reference to, review, disclosure or copying of the message and the information it contains for any purpose is prohibited. If you have received this message in error, please notify the sender by reply e-mail of the misdelivery and delete all its contents. Opinions, conclusions and other information in this message that do not relate to the official business of Malayan Banking Berhad shall be understood as neither given nor endorsed by it.
