jxs-nv opened a new issue, #12208:
URL: https://github.com/apache/dubbo/issues/12208

   <!-- 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.x ; 3.2.x
   * Operating System version: ubuntu 22.04
   * Java version: 1.8;17
   
   ### Steps to reproduce this issue
   
   1. 使用alibaba dubbo时的代码
      com.alibaba.dubbo.config.ReferenceConfig<ISksService> referenceConfig = 
new com.alibaba.dubbo.config.ReferenceConfig<>();
           String appName = "sks-client";
           referenceConfig.setApplication(new 
com.alibaba.dubbo.config.ApplicationConfig(appName));
           referenceConfig.setInterface(ISksService.class);
           String registryConfigList = "nacos://nacos.dev.com:8848";
           com.alibaba.dubbo.config.RegistryConfig dubboRegistry = new 
com.alibaba.dubbo.config.RegistryConfig();
           dubboRegistry.setAddress(registryConfigList);
           referenceConfig.setRegistry(dubboRegistry);
           ISksService service = referenceConfig.get();
           Result<String> encoder = service.encode("test");
           System.out.println(encoder.getValue());
   2. 切换为apache dubbo 依赖后 在referenceConfig.setApplication(new 
com.alibaba.dubbo.config.ApplicationConfig(appName)); 和 
referenceConfig.setRegistry(dubboRegistry); 两处存在异常 java.lang.NoSuchMethodError: 
com.alibaba.dubbo.config.ReferenceConfig.setApplication(Lcom/alibaba/dubbo/config/ApplicationConfig;)V
 及 java.lang.NoSuchMethodError: 
com.alibaba.dubbo.config.ReferenceConfig.setRegistry(Lcom/alibaba/dubbo/config/RegistryConfig;)V
   3.
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   java.lang.NoSuchMethodError: 
com.alibaba.dubbo.config.ReferenceConfig.setApplication(Lcom/alibaba/dubbo/config/ApplicationConfig;)V
    java.lang.NoSuchMethodError: 
com.alibaba.dubbo.config.ReferenceConfig.setRegistry(Lcom/alibaba/dubbo/config/RegistryConfig;)V
   ```
   


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