You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/12/22 01:22:31 UTC

[GitHub] [dubbo] zhangqingyango opened a new issue, #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   ### Environment
   
   * Dubbo version: 3.1.3
   * Java version: 8
   
   ![image](https://user-images.githubusercontent.com/37824124/209034256-7e0983a1-8148-43c6-bf28-429165cf1aea.png)
   
   泛化调用异常,PB 文件泛化调用
   


-- 
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


Re: [I] This serialization only support google protobuf object, the object class is: java.lang.String [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String
URL: https://github.com/apache/dubbo/issues/11189


-- 
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] aamingaa commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   我来看看


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1371821611

   我把代码拉了下来,改了下注册中心,还是跑不通
   ![image](https://user-images.githubusercontent.com/37824124/210713239-893aef39-2771-40ce-b7c5-5e38db99623a.png)
   这个是nacos 提供者信息
   ![image](https://user-images.githubusercontent.com/37824124/210713290-5ff18b46-d973-4bb5-a301-acd8993b544d.png)
   


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1371822842

   找到了类似问题,按照描述中添加依赖后就会报标题错误,https://github.com/apache/dubbo/issues/11129


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1371601890

   https://github.com/apache/dubbo-samples/blob/master/3-extensions/serialization/dubbo-samples-protobuf-json/protobuf-json-serialization-demo/src/main/java/org/apache/dubbo/sample/protobuf/genericCall/GenericClient.java


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1362281579

   ![image](https://user-images.githubusercontent.com/37824124/209034391-4e36f188-08c5-4155-a87d-327e24fc59cb.png)
   


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1376648927

   上传了,看下这个地址能不能看到


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   请问这个问题是已经处理好了吗@aamingaa


-- 
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 #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1375516319

   > 我在邮件中修改的内容,回复了你,请注意查收
   
   可以在 github 上面直接上传吗,没看到附件


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1363774539

   @AlbumenJ 求教


-- 
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 #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1372148870

   > 我把代码拉了下来,改了下注册中心,还是跑不通 ![image](https://user-images.githubusercontent.com/37824124/210713239-893aef39-2771-40ce-b7c5-5e38db99623a.png) 这个是nacos 提供者信息 ![image](https://user-images.githubusercontent.com/37824124/210713290-5ff18b46-d973-4bb5-a301-acd8993b544d.png)
   
   你修改的内容可以提个 patch 吗,我复现下


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1373003065

   我在邮件中修改的内容,回复了你,请注意查收


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   好的,了解


-- 
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 #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1369514357

   https://github.com/apache/dubbo-samples/blob/master/3-extensions/serialization/dubbo-samples-protobuf-json/protobuf-json-serialization-demo/src/main/java/org/apache/dubbo/sample/protobuf/genericCall/GenericClient.java
   基于这个用例修改了下,我这边是可以正常使用的
   
   Dubbo 3.1.4, 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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1373002213

   附件的
   protobuf-json-provider-generic-demo 新建了一个demo ,注册到nacos。引用了,3-extensions 中protobuf-json-serialization-api模块
   
   
   3-extensions 中修改了以下内容
   1、dubbo.version 3.1.4
   
   
   
   
   2. 加了一个nacos、一个protobuf 序列化依赖
   
   
   3、修改了GenericClient&nbsp; 改了注册中心
   
   
   
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/dubbo"                                                                                    ***@***.***&gt;;
   发送时间:&nbsp;2023年1月5日(星期四) 晚上8:21
   ***@***.***&gt;;
   ***@***.******@***.***&gt;;
   主题:&nbsp;Re: [apache/dubbo] This serialization only support google protobuf object, the object class is: java.lang.String (Issue #11189)
   
   
   
   
   
     
   我把代码拉了下来,改了下注册中心,还是跑不通  这个是nacos 提供者信息 
     
   你修改的内容可以提个 patch 吗,我复现下
    
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you commented.Message ID: ***@***.***&gt;


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

Posted by GitBox <gi...@apache.org>.
zhangqingyango commented on issue #11189:
URL: https://github.com/apache/dubbo/issues/11189#issuecomment-1376648497

   https://github.com/zhangqingyango/dubbo-protobuf-json-demo.git


-- 
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] aamingaa commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   > 
   
   这个问题社区已经讨论过了,protobuf其实不适合泛化,它在设计之初就希望两端通信是有确定的实体存在,dubbo侧不应该帮用户兜这个底,将选择权交由用户。建议尝试下用prefer-serialization配置下其他序列化方式进行泛化调用呢。 https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/upgrades-and-compatibility/serialization-upgrade/#%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5


-- 
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] zhangqingyango commented on issue #11189: This serialization only support google protobuf object, the object class is: java.lang.String

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

   使用了一种取巧的方式,利用dubbo-compiler 项目将proto文件打包成java service 文件时,增加一个新的方法如下:
   ![image](https://user-images.githubusercontent.com/37824124/224982504-cb21b7fe-fb0c-461b-9482-e7c6bc930bd1.png)
   通过dubbo 默认序列化进行json 泛化调用


-- 
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