alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.33k stars 12.85k forks source link

2.4.2.1 使用jdk8 nacos成功启动,但访问页面报这个错:nacos 访问页面 caused: Handler dispatch failed;nested exception is java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;; caused: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;; #12680

Closed yinchuanqi closed 1 month ago

yinchuanqi commented 1 month ago

nacos版本2.4.2.1 jdk版本1.8.0_391

nacos 访问页面 caused: Handler dispatch failed;nested exception is java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;; caused: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;;

pengzonli commented 1 month ago

caused: Handler dispatch failed;nested exception is java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;;caused: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;;

me too.

riggzh commented 1 month ago

docker version same

Vain-vayne commented 1 month ago

Nacos version: 2.4.2.1

JDK version: openjdk version "1.8.0_422"
Console refresh error:
2024-09-24 09:01:32,374 ERROR CONSOLE /nacos/v1/console/server/guide org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;

JDK version: openjdk version "11.0.24" 2024-07-16 Refresh Normal

Vain-vayne commented 1 month ago

下载 Nacos 2.4.2.1 源码后, 用jdk 1.8 编译一遍就没问题了, 应该是安装包编译的问题

strengthen7 commented 1 month ago

遇到同样的问题,是不是官网发布的包不是用1.8编译的?

mrpc2030 commented 1 month ago

image

KomachiSion commented 1 month ago

应该是发版的时候jdk版本改了,需要替换发布一下。

KomachiSion commented 1 month ago

已更新,请重新下载发布包或docker镜像。

jaimyjie commented 1 month ago

已更新,请重新下载发布包或docker镜像。

可以了,感谢