Open liupu9 opened 1 year ago
如果用其它支持JDK17序列化协议是可以的 当前bolt 使用的默认序列化协议是hession,部分类(如AtomicXXX)会有问题,不过这个在支持中 https://github.com/sofastack/sofa-hessian/pulls
sofa.hessian 目前已经发布了3.5.0 版本. Bolt是不是就已经支持Java17了?
https://github.com/sofastack/sofa-hessian/releases/tag/v3.5.0
@Lo1nt is java 17 officially supported?
@chuailiwu @Lo1nt 同问,事实hessian已经支持jdk17了的。目前我们是在springboot3.2下使用的。但是由于日志框架需要2.x版本,只发现了使用会出现一下错误
@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]
hession 已经升级到了3.5.3 另你这个问题应该和jdk17没关系,你可以看下调用栈,只是要做目标地址的连接检查,如果没有也不会创建
@chuailiwu @Lo1nt 同问,事实hessian已经支持jdk17了的。目前我们是在springboot3.2下使用的。但是由于日志框架需要2.x版本,只发现了使用会出现一下错误
你好,我也出现了这个问题了,请问你解决了吗?是springboot版本高的问题导致的吗?你是如何解决的?
Your question
Bolt是否支持JDK17 LTS版本?
Your scenes
Spring 6 支持的最低版本为JDK17.
Your advice
无
Environment
java -version
): 17uname -a
):