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/02/25 03:24:12 UTC
[GitHub] [dubbo] fxbyun opened a new issue #9717: dubbo使用kryo序列化报错:Unable to find class
fxbyun opened a new issue #9717:
URL: https://github.com/apache/dubbo/issues/9717
<!-- 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.
<!-- kryo 序列化 -->
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
<version>0.45</version>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>4.0.2</version>
</dependency>
Agency类同时被A服务和B服务依赖,Agency类新增了一个字段,B服务重新打包上线,A服务调用B服务时,就会报错,错误如下:

目前在网上没找到有效的解决方案,类似的问题:https://blog.csdn.net/uniquewonderq/article/details/104641052
但是文章给出的第三个方案,在项目众多的情况,无法快速使用
--
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] Bricks-Man commented on issue #9717: dubbo使用kryo序列化报错:Unable to find class
Posted by GitBox <gi...@apache.org>.
Bricks-Man commented on issue #9717:
URL: https://github.com/apache/dubbo/issues/9717#issuecomment-1058789377
铁子,你这种搞法是无解的。如果想实现你这种办法,真的只有文章中的第二/三方案。还有一种不太建议的方案,你可以试试,就是参数隐式传递,这种方案可以满足你的这种需求,但是这种骚操作,不应该大量应用。
--
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