sofastack / sofa-bolt

SOFABolt is a lightweight, easy to use and high performance remoting framework based on Netty.
https://www.sofastack.tech/projects/sofa-bolt/
Apache License 2.0
2.44k stars 860 forks source link

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

Open liupu9 opened 1 year ago

liupu9 commented 1 year ago

Your question

Bolt是否支持JDK17 LTS版本?

Your scenes

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

Your advice

Environment

chuailiwu commented 1 year ago

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

liupu9 commented 1 year ago

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

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

nobodyiam commented 1 year ago

@Lo1nt is java 17 officially supported?

zxuanhong commented 8 months ago

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

image
zxuanhong commented 8 months ago

@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 commented 6 months ago

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

BugTerminat0r commented 1 week ago

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

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