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/10/29 08:42:16 UTC

[GitHub] [dubbo] weii918 opened a new issue, #10848: Dubbo 升级 2.7.18 后,泛化调用异常

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

   <!-- 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:  2.7.18
   * Operating System version: xxx
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. dubbo 从 2.7.8 升级至 2.7.18
   2. 泛化调用异常:Failed to invoke the method $invoke in the service org.apache.dubbo.rpc.service.GenericService. No provider available for the service XXXXX,检查了 zookeeper 服务是注册上去的
   3. 泛化调用代码如下:
   ```
   ReferenceConfig<GenericService> referenceConfig = this.referenceConfigFactory.generate();
   referenceConfig.setInterface(interfaceName);
   if (StringUtils.isNotEmpty(group)) {
       referenceConfig.setGroup(group);
   }
   if (StringUtils.isNotEmpty(version)) {
       referenceConfig.setVersion(version);
   }
   referenceConfig.setGeneric("true");
   referenceConfig.setCheck(false);
   referenceConfig.setTimeout(CONSUMER_TIMEOUT);
   genericService = referenceConfig.get();
   genericService.$invoke(methodName, paramTypes, paramValues)
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
    正常调用
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
    Failed to invoke the method $invoke in the service org.apache.dubbo.rpc.service.GenericService. No provider available for the service XXXXX from registry 127.0.0.1:2181 on the consumer xxxxxx using the dubbo version 2.7.18. Please check if the providers have been started and registered. 
   org.apache.dubbo.rpc.RpcException: Failed to invoke the method $invoke in the service org.apache.dubbo.rpc.service.GenericService. No provider available for the service XXXXX from registry 127.0.0.1:2181 on the consumer xxxxxx using the dubbo version 2.7.18. Please check if the providers have been started and registered.
   	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:288) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:59) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:265) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:98) ~[dubbo-2.7.18.jar:2.7.18]
   	at org.apache.dubbo.registry.client.migration.MigrationInvoker.invoke(MigrationInvoker.java:170) ~[dubbo-2.7.18.jar:2.7.18]
   ```
   


-- 
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] wangzihaogithub commented on issue #10848: Dubbo 升级 2.7.18 后,泛化调用异常

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

   你是怎么解决的, 我也遇到了和你一模一样


-- 
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] weii918 commented on issue #10848: Dubbo 升级 2.7.18 后,泛化调用异常

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

   > 
   
   检查服务注册是否加上了 dubbo.provider.tag 配置,服务调用方也同样要带上 tag。这个在 2.7.8 调用方不带 tag 是可以调用注册带有 tag 的服务的,2.7.18 修复了。还有就是 2.7.18 的泛化调用过滤器GenericFilter做了修改,如果重写了过滤器可以对照官方的修改。


-- 
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] weii918 closed issue #10848: Dubbo 升级 2.7.18 后,泛化调用异常

Posted by GitBox <gi...@apache.org>.
weii918 closed issue #10848: Dubbo 升级 2.7.18 后,泛化调用异常
URL: https://github.com/apache/dubbo/issues/10848


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