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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to