You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "s5364733 (via GitHub)" <gi...@apache.org> on 2023/08/16 08:53:25 UTC

[GitHub] [dubbo] s5364733 opened a new issue, #12915: triple 协议不兼容 grpc

s5364733 opened a new issue, #12915:
URL: https://github.com/apache/dubbo/issues/12915

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.1.7
   * Operating System version:  windows 11
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. 服务端启动报错,使用GRPC协议
   ```java
   Caused by: java.lang.ClassNotFoundException: io.grpc.HandlerRegistry
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   	... 20 more
   
   
   ```
   2. 使用triple协议启动 java 服务端,客户端go-grpc 调用报错
   ```java
   2023/08/16 16:39:59 could not msg: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:50052: connectex: No connection could be made because the target machine actively refused it."
   
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   按照官网的说法triple 协议完全兼容grpc 协议,期望可以用grpc协议和dubbo-triple协议互通,
   
   >如果我想强行互通的话,是不是需要使用老版本的dubbo?
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1680392450

   ![image](https://github.com/apache/dubbo/assets/24503935/72bd50b8-058d-4de3-b644-9254d79ae963)
   >里边已经没有GRPC的协议常量了


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1681867282

   dubbo server 启动如下 :<br/>
   
   <img width="511" alt="image" src="https://github.com/apache/dubbo/assets/24503935/8783c11d-7e2b-4e26-b971-f4045cb2acc4">
   
   grpc client 如下 :<br/>
   
   <img width="756" alt="image" src="https://github.com/apache/dubbo/assets/24503935/f5d15bab-b431-4f88-8c34-4d0398241f7c">
   
   我看了sample 貌似现在都是直接用的tri 协议,没有GRPC 的案例
   
   <img width="813" alt="image" src="https://github.com/apache/dubbo/assets/24503935/66a13271-3983-4deb-954f-98edcade47e2">
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1681537682

   > triple 的 server 为什么会有 grpc 的 class 呢? 检查一下自己的依赖
   
   放在一个项目里边的,成功启动之后,GRPC调用 直接超时


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] EarthChen commented on issue #12915: triple 协议不兼容 grpc

Posted by "EarthChen (via GitHub)" <gi...@apache.org>.
EarthChen commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1681531333

   triple 的 server 为什么会有 grpc 的 class 呢?  检查一下自己的依赖


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] chickenlj commented on issue #12915: triple 协议不兼容 grpc

Posted by "chickenlj (via GitHub)" <gi...@apache.org>.
chickenlj commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1685902423

   https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-triple-grpc


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] triple 协议不兼容 grpc [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12915: triple 协议不兼容 grpc 
URL: https://github.com/apache/dubbo/issues/12915


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1690975181

   GRPC原生互通 JAVA服务端必须以stream的定义,我改了下,貌似可以了


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #12915: triple 协议不兼容 grpc

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1680475725

   @EarthChen PTAL


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1689349314

   > https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-triple-grpc
   
   我需要的是跨语言的 sample ,例如我现在使用rust 或者golang 能不能和dubbo 的tri 协议互通?


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1689931818

   > 尝试引用grpc的bom,然后看项目实际引用的grpc的每个包的版本是否接近。我今天遇到了相同的ClassNotFound,是这么解决的
   
   能否列一下您GRPC 版本


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1680389638

   > ```java
   > HandlerRegistry
   > ```
   
   请问要用什么版本,我grpc版本是1.44.1,这是sample里边的版本


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] luckybins commented on issue #12915: triple 协议不兼容 grpc

Posted by "luckybins (via GitHub)" <gi...@apache.org>.
luckybins commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1689775725

   尝试引用grpc的bom,然后看项目实际引用的grpc的每个包的版本是否接近。我今天遇到了相同的ClassNotFound,是这么解决的


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1690973586

   我弄好了, 这个单可以关了,感谢各位


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] EarthChen commented on issue #12915: triple 协议不兼容 grpc

Posted by "EarthChen (via GitHub)" <gi...@apache.org>.
EarthChen commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1681769793

   sample 中有个 triple 模块 里面有互通的测试


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] songxiaosheng commented on issue #12915: triple 协议不兼容 grpc

Posted by "songxiaosheng (via GitHub)" <gi...@apache.org>.
songxiaosheng commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1680363722

   会不会是你那边grpc版本太低了,我看grpc-api中1.57.1是有你那边缺失的类型的
   <img width="844" alt="image" src="https://github.com/apache/dubbo/assets/81170548/a5da038a-a0af-4e06-b522-c7b89f866fb8">
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1680390699

   > 会不会是你那边grpc版本太低了,我看grpc-api中1.57.1是有你那边缺失的类型的 <img alt="image" width="844" src="https://user-images.githubusercontent.com/81170548/260982086-a5da038a-a0af-4e06-b522-c7b89f866fb8.png">
   
   
   请问要用什么版本,我grpc版本是1.44.1,这是sample里边的版本
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] s5364733 commented on issue #12915: triple 协议不兼容 grpc

Posted by "s5364733 (via GitHub)" <gi...@apache.org>.
s5364733 commented on issue #12915:
URL: https://github.com/apache/dubbo/issues/12915#issuecomment-1681660668

   请问有没有一个案例(原生GRPC可以直接调用DUBBO triple 协议)?


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org