EightyOliveira commented on issue #6015:
URL: https://github.com/apache/rocketmq/issues/6015#issuecomment-2336583532

   > > > > > > Is there some advice ? I have the problem too.
   > > > > > 
   > > > > > 
   > > > > > @jiangyklala This issue is actually caused by SSL compatibility 
problems on some Windows platforms. Please disable ssl by 
`ClientConfigurationBuilder#enableSsl(false)`.
   > > > > > Here is the [related 
link](https://github.com/apache/rocketmq-clients/blob/master/java/client-apis/src/main/java/org/apache/rocketmq/client/apis/ClientConfigurationBuilder.java#:~:text=ClientConfigurationBuilder-,enableSsl,-()).
   > > > > 
   > > > > 
   > > > > 按照你的解决方案进行了处理,但是错误变成了”UNAVAILABLE: Network closed for unknown 
reason“。如果不设置enableSsl=false,这错误是”UNAVAILABLE: Failed ALPN negotiation: Unable 
to find compatible protocol“。 SDK版本是rocketmq-client-java 5.0.5。服务器端是5.1.3的。 
`<dependency> <groupId>org.apache.rocketmq</groupId> 
<artifactId>rocketmq-client-java</artifactId> <version>5.0.5</version> 
</dependency>`
   > > > > 
![image](https://user-images.githubusercontent.com/40418583/257275330-6a08f492-efbd-40a4-87b9-1cb8c164c12e.png)
 
![image](https://user-images.githubusercontent.com/40418583/257275541-7842a56d-c9da-4ad3-af27-2110c7e0f8d1.png)
 
![image](https://user-images.githubusercontent.com/40418583/257279534-8a8c008b-6067-472f-a924-f949fcbaf08d.png)
   > > > > 服务器是Ubuntu虚拟机搭建的。url是虚拟机IP:9876。在SpringCloud项目启动注册消费者Bean的时候,报的错误。
   > > > 
   > > > 
   > > > rocketmq 5.x 需要使用 proxy 的的方式启动。然后enableSsl=false, 加上对应的账户密码。就可以连接。
   > > 
   > > 
   > > 
我使用的是Local模式启动的。并且日志显示proxy启动是成功的。就是没有使用账户和密码。这个账户和密码是必须的么?正常来说内网环境不是无需设置ACL么?我的JDK环境版本是20.x。之前使用Remoting协议的SDK是链接正常的。可以正常收发消息。但是gRPC协议的不行。
 
![image](https://user-images.githubusercontent.com/40418583/257403984-dd9b7bb6-c4e2-4036-9d8d-bb5b875b7a17.png)
 是否需要我提供我的测试代码来方便你们测试?
   > 
   > 没有设置账户密码,是可以不填的。连接使用的端口是proxy的端口,不是9876. 例如proxy.json配置为 `{ 
"grpcServerPort": 18081, "remotingListenPort":18082, "rocketMQClusterName": 
"DefaultCluster" }`
   > 
   > 那连接的 endpoints = "localhost:18082"
   
   如果使用rocketmq-client sdk,应该是使用proxy中grpc端口
   例如 
   10.0.0.1 { "grpcServerPort": 18081, "remotingListenPort":18082, 
"rocketMQClusterName": "DefaultCluster" }
   10.0.0.2 { "grpcServerPort": 18081, "remotingListenPort":18082, 
"rocketMQClusterName": "DefaultCluster" }
   String ENDPOINTS = "10.0.0.1:18081;10.0.0.2:18081";
   虽然用remoting一样可以成功,我也不知道为什么
   <img width="626" alt="1725781300171" 
src="https://github.com/user-attachments/assets/f5db42ee-b078-4f50-9b3e-14fca4ae242c";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to