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

Bolt是否支持JDK17 LTS版本? #326

Open
liupu9 opened this issue May 5, 2023 · 7 comments
Open

Bolt是否支持JDK17 LTS版本? #326

liupu9 opened this issue May 5, 2023 · 7 comments

Comments

@liupu9
Copy link

liupu9 commented May 5, 2023

Your question

Bolt是否支持JDK17 LTS版本?

Your scenes

Spring 6 支持的最低版本为JDK17.

Your advice

Environment

  • SOFABolt version:
  • JVM version (e.g. java -version): 17
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:
@chuailiwu
Copy link
Collaborator

如果用其它支持JDK17序列化协议是可以的
当前bolt 使用的默认序列化协议是hession,部分类(如AtomicXXX)会有问题,不过这个在支持中 https://github.com/sofastack/sofa-hessian/pulls

@liupu9
Copy link
Author

liupu9 commented Sep 5, 2023

sofa.hessian 目前已经发布了3.5.0 版本. Bolt是不是就已经支持Java17了?

https://github.com/sofastack/sofa-hessian/releases/tag/v3.5.0

@nobodyiam
Copy link
Member

@Lo1nt is java 17 officially supported?

@zxuanhong
Copy link

zxuanhong commented Mar 4, 2024

@chuailiwu @Lo1nt
同问,事实hessian已经支持jdk17了的。目前我们是在springboot3.2下使用的。但是由于日志框架需要2.x版本,只发现了使用会出现一下错误
image

@zxuanhong
Copy link

@chuailiwu @Lo1nt 我在另外一个框架sofa-jraft升级到jdk17。发现集群启动正常,但是他CliService工具会提示Connection is null when do check!。我感觉应该也是这边问题。还是希望尽快升级下jdk。

2024-03-07 15:07:43  WARN 92029 --- [flow-demo] [rpc-executor #3] com.alipay.sofa.common.log               : check failed. address: 127.0.0.1:19192, connection: null

com.alipay.remoting.exception.RemotingException: Connection is null when do check!
	at com.alipay.remoting.DefaultConnectionManager.check(DefaultConnectionManager.java:354) ~[bolt-1.6.7.jar:na]
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:447) ~[bolt-1.6.7.jar:na]
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:438) ~[bolt-1.6.7.jar:na]
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:433) ~[bolt-1.6.7.jar:na]
	at com.alipay.sofa.jraft.rpc.impl.BoltRpcClient.checkConnection(BoltRpcClient.java:73) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.isConnected(AbstractClientService.java:81) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.connect(AbstractClientService.java:142) ~[main/:na]
	at com.alipay.sofa.jraft.core.NodeImpl.electSelf(NodeImpl.java:1106) ~[main/:na]
	at com.alipay.sofa.jraft.core.NodeImpl.handleTimeoutNowRequest(NodeImpl.java:3241) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.core.TimeoutNowRequestProcessor.processRequest0(TimeoutNowRequestProcessor.java:52) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.core.TimeoutNowRequestProcessor.processRequest0(TimeoutNowRequestProcessor.java:33) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.core.NodeRequestProcessor.processRequest(NodeRequestProcessor.java:59) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.RpcRequestProcessor.handleRequest(RpcRequestProcessor.java:52) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.RpcRequestProcessor.handleRequest(RpcRequestProcessor.java:34) ~[main/:na]
	at com.alipay.sofa.jraft.rpc.impl.BoltRpcServer$2.handleRequest(BoltRpcServer.java:124) ~[main/:na]
	at com.alipay.remoting.rpc.protocol.RpcRequestProcessor.dispatchToUserProcessor(RpcRequestProcessor.java:235) ~[bolt-1.6.7.jar:na]
	at com.alipay.remoting.rpc.protocol.RpcRequestProcessor.doProcess(RpcRequestProcessor.java:146) ~[bolt-1.6.7.jar:na]
	at com.alipay.remoting.rpc.protocol.RpcRequestProcessor$ProcessTask.run(RpcRequestProcessor.java:393) ~[bolt-1.6.7.jar:na]

@chuailiwu
Copy link
Collaborator

chuailiwu commented May 15, 2024

hession 已经升级到了3.5.3
另你这个问题应该和jdk17没关系,你可以看下调用栈,只是要做目标地址的连接检查,如果没有也不会创建
image

@BugTerminat0r
Copy link

@chuailiwu @Lo1nt 同问,事实hessian已经支持jdk17了的。目前我们是在springboot3.2下使用的。但是由于日志框架需要2.x版本,只发现了使用会出现一下错误 image

你好,我也出现了这个问题了,请问你解决了吗?是springboot版本高的问题导致的吗?你是如何解决的?

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

5 participants