You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ningyu1 (GitHub)" <gi...@apache.org> on 2019/08/20 02:03:52 UTC

[GitHub] [dubbo] ningyu1 opened issue #4889: version and group are lost when generic invoker,Impact Dubbo version 2.7.3

- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.3
* Operating System version: Win7
* Java version: 1.8

### Steps to reproduce this issue

1. Generic invoke
```
ApplicationConfig application = new ApplicationConfig();
application.setName("api-generic-consumer");
ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
reference.setUrl("dubbo://ip:port/com.xxx.XXXService");
reference.setVersion("1.0.0");
reference.setGeneric(true);
reference.setApplication(application);
reference.setInterface("com.xxx.XXXService");
GenericService genericService = reference.get();
Object obj = genericService.$invoke("getYYY", new String[]{Long.class.getName()}, new Long[]{1L});
String json = JsonUtils.toJson(obj);
System.out.println(json);
```

2. ReferenceConfig.init() -> ReferenceConfig.createProxy() -> ClusterUtils.mergeUrl(), Lost after passing 'ClusterUtils.mergeUrl'.

ps. Dubbo v2.7.2 previous version verified that it will not be lost.

### Screen

![image](https://user-images.githubusercontent.com/3387548/63311381-775de700-c330-11e9-9915-4a64d259886b.png)
![image](https://user-images.githubusercontent.com/3387548/63311401-86449980-c330-11e9-91eb-1a39ea300a2d.png)

### Expected Result

Get the interface return value normally.

### Actual Result

Consumer:

```
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.jiuyescm.account.api.IUserService:20834 in [com.jiuyescm.account.api.IPassportService:1.0.0:20834, com.jiuyescm.account.api.ILoginStrategyService:1.0.0:20834, com.jiuyescm.account.api.ILogService:1.0.0:20834, com.jiuyescm.account.api.IUserService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[getYYY, [Ljava.lang.String;@54e64fa4, [Ljava.lang.Object;@5a21bb48], attachments={path=com.xxx.XXXService, input=309, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]
```

Provider:

```
2019-08-20 09:59:42.456 [New I/O worker #7] INFO com.alibaba.dubbo.common.logger.log4j.Log4jLogger.info(Log4jLogger.java:66) -  [DUBBO] Not found exported service: com.xxx.XXXService:20834 in [com.xxx.AAAService:1.0.0:20834, com.xxx.BBBService:1.0.0:20834, com.xxx.CCC:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}], dubbo version: 2.5.3, current host: 192.168.56.1 #-# com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.xxx.XXXService:20834 in [com.xxx.IPassportService:1.0.0:20834, com.xxx.ILoginStrategyService:1.0.0:20834, com.xxx.ILogService:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may b
 e version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]
```


[ Full content available at: https://github.com/apache/dubbo/issues/4889 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo] beiwei30 closed issue #4889: version and group are lost when generic invoker,Impact Dubbo version 2.7.3

Posted by "beiwei30 (GitHub)" <gi...@apache.org>.
[ issue closed by beiwei30 ]

[ Full content available at: https://github.com/apache/dubbo/issues/4889 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo] tswstarplanet commented on issue #4889: version and group are lost when generic invoker,Impact Dubbo version 2.7.3

Posted by "tswstarplanet (GitHub)" <gi...@apache.org>.
master已经修复了

[ Full content available at: https://github.com/apache/dubbo/issues/4889 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [dubbo] ningyu1 commented on issue #4889: version and group are lost when generic invoker,Impact Dubbo version 2.7.3

Posted by "ningyu1 (GitHub)" <gi...@apache.org>.
#4784 #4787 


[ Full content available at: https://github.com/apache/dubbo/issues/4889 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo] beiwei30 commented on issue #4889: version and group are lost when generic invoker,Impact Dubbo version 2.7.3

Posted by "beiwei30 (GitHub)" <gi...@apache.org>.
it's been fixed.

[ Full content available at: https://github.com/apache/dubbo/issues/4889 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org