You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "linjianming02 (via GitHub)" <gi...@apache.org> on 2023/02/28 12:27:54 UTC
[GitHub] [dubbo] linjianming02 opened a new issue, #11691: dubbo3.1.7字段名称定义冲突导致启动失败
linjianming02 opened a new issue, #11691:
URL: https://github.com/apache/dubbo/issues/11691
<!-- 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: macOS
* Java version: 1.8
### Steps to reproduce this issue
consumer侧有三个seivice类。
A类:CollectCardServiceImpl定义如下字段:
@DubboReference
private ICollectCardClientApi collectCardClientApi;
B类:SuperBoostServiceImpl定义如下字段:
@DubboReference
private ICollectCardClientApi unionShopClientApi;
C类:UnionShopServiceImpl定义如下字段:
@DubboReference
private IUnionShopClientApi unionShopClientApi;
就会启动失败,报错提示:Can not set com.xxx.game.api.client.IUnionShopClientApi field com.xxx.client.game.module.unionshop.service.impl.UnionShopServiceImpl.unionShopClientApi to com.sun.proxy

问题可以总结为:B类的字段名unionShopClientApi跟C类中的字段名一样,但是类型却是A类的类型,然后根据别名的取出来的类型不对。
--
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] dubbo3.1.7字段名称定义冲突导致启动失败 [dubbo]
Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
URL: https://github.com/apache/dubbo/issues/11691
--
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] liufeiyu1002 commented on issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
Posted by "liufeiyu1002 (via GitHub)" <gi...@apache.org>.
liufeiyu1002 commented on issue #11691:
URL: https://github.com/apache/dubbo/issues/11691#issuecomment-1449502821
问题已经复现了, 你是不是用了多 version,晚上到家我修复一下
--
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] liufeiyu1002 commented on issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
Posted by "liufeiyu1002 (via GitHub)" <gi...@apache.org>.
liufeiyu1002 commented on issue #11691:
URL: https://github.com/apache/dubbo/issues/11691#issuecomment-1449517408
OK 之前修复的时候漏了一种可能性。 晚上修复
--
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] linjianming02 commented on issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
Posted by "linjianming02 (via GitHub)" <gi...@apache.org>.
linjianming02 commented on issue #11691:
URL: https://github.com/apache/dubbo/issues/11691#issuecomment-1449652809
>
那就是目前已经复现出问题了是吧
--
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] linjianming02 commented on issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
Posted by "linjianming02 (via GitHub)" <gi...@apache.org>.
linjianming02 commented on issue #11691:
URL: https://github.com/apache/dubbo/issues/11691#issuecomment-1449497006
> 这个问题之前已经修复过了 [10335](https://github.com/apache/dubbo/issues/10335) ,使用你的版本我本地测试没有复现,可以正常调用。 可以提供一个你异常的demo么
我这边目前是公司项目启动出现问题,至少有两三个项目发现问题了。所以大概率可能是存在问题的。 也可能与加载顺序有关啥的。 demo目前是没有,后面有空的话 我可以再整个demo试试。 这里好像得有3个类才能发生,其中B类用A类变量的类型,用C类变量的名称。
--
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] liufeiyu1002 commented on issue #11691: dubbo3.1.7字段名称定义冲突导致启动失败
Posted by "liufeiyu1002 (via GitHub)" <gi...@apache.org>.
liufeiyu1002 commented on issue #11691:
URL: https://github.com/apache/dubbo/issues/11691#issuecomment-1449464628
这个问题之前已经修复过了 [10335](https://github.com/apache/dubbo/issues/10335) ,使用你的版本我本地测试没有复现,可以正常调用。 可以提供一个你异常的demo么
--
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