Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nacos2.4.3版本和2.3.1版本,分别添加version-hb后,deploy到私服,走自动化部署工具部署启动报错 #12774

Open
bing568186255 opened this issue Oct 22, 2024 · 0 comments

Comments

@bing568186255
Copy link

bing568186255 commented Oct 22, 2024

环境:
jdk1.8
操作步骤
1、下载Nacos2.4.3源码,更改2.4.3-hb,mvn clean deploy到maven私服
2、套一个空的app,依赖maven坐标

com.alibaba.nacos
nacos-console
2.4.3-hb
,编写main方法,调用Nacos.main(args)
3、所有配置mysql、cluster配好
4、启动报hession包冲突,(但我看了2.4.2已解决,且在极端情况下jdk17才会出现),以下是报错部分信息:


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.alibaba.nacos.consistency.serialize.NacosHessianSerializerFactory.<init>(NacosHessianSerializerFactory.java:60)

The following method did not exist:

com.caucho.hessian.io.SerializerFactory.getClassFactory()Lcom/caucho/hessian/io/ClassFactory;

The calling method's class, com.alibaba.nacos.consistency.serialize.NacosHessianSerializerFactory, was loaded from the following location:

jar:file:/workspace/AppNacos/lib/nacos-consistency-2.4.3-hb.jar!/com/alibaba/nacos/consistency/serialize/NacosHessianSerializerFactory.class

The called method's class, com.caucho.hessian.io.SerializerFactory, is available from the following locations:

jar:file:/workspace/AppNacos/lib/hessian-3.3.6.jar!/com/caucho/hessian/io/SerializerFactory.class
jar:file:/workspace/AppNacos/lib/hessian-4.0.63.jar!/com/caucho/hessian/io/SerializerFactory.class

The called method's class hierarchy was loaded from the following locations:

com.caucho.hessian.io.SerializerFactory: file:/workspace/AppNacos/lib/hessian-3.3.6.jar
com.caucho.hessian.io.AbstractSerializerFactory: file:/workspace/AppNacos/lib/hessian-3.3.6.jar

5、降低nacos版本到2.3.1,重复上述步骤依旧报错
6、尝试排除sofa下的hessian-3.3.6.jar,启动无报错,但8848本地telnet直接拒绝访问
7、退回到2.0.3版本重复上述步骤,正常,nacos集群自动化部署完毕。

期望用2.2.1+版本nacos服务,并接入公司自动化部署工具!期待大佬们的回复,谢谢!
疑问:hession冲突我这里启动必现,应该不是我deploy的问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant