Description: An attempt was made to call a method that does not exist.The attempt was made from the following location: org.apache.dubbo.metadata.store.nacos.NacosConfigServiceWrapper.publishConfigCas(NacosConfigServiceWrapper.java:65) 家 The following method did not exist: 15:18:30 The method's class,com.alibaba.nacos.api.config.configservice,is available from the following Locations: 兆科技有限公司 as -0 Gar:file:/var/www/java/api-java-meeting2.0/ubains-meeting-inner-api-1.0-SNAPSHOT.jar!/BOOT-INE/lib/nacos-api-1.4.0.jar!/com/alibaba/nacos/api/config/Configservice.class The class hierarchy was loaded from the following locations: 2025 2023 深 com.alibaba.nacos .api.config.Configservice:jar:file:/var/www/java/api-java-meeting2.0/ubains-meeting-inner-api-1.0-SNAPSHOT.jar!/BOOT-INF/lib/nacos-api-1.4.0.jar!/ 怎么解决
时间: 2024-02-03 11:03:08 浏览: 91
这个问题看起来是 Dubbo 使用了错误的版本的 Alibaba Nacos Config,导致方法调用时出现了错误。
要解决这个问题,你可以尝试以下几种方法:
1. 检查应用程序的依赖,确保使用的是与 Dubbo 兼容的版本的 Alibaba Nacos Config。
2. 确保应用程序的 Classpath 中只存在一份 Alibaba Nacos Config 的 JAR 包,避免出现多个版本的 JAR 包导致冲突。
3. 如果使用的是 Maven 作为项目构建工具,可以尝试使用 Maven Dependency Plugin 等工具来排除重复依赖。
4. 如果仍然无法解决问题,可以尝试升级 Dubbo 或 Alibaba Nacos Config 的版本,或者联系 Dubbo 或 Alibaba Nacos 的技术支持寻求帮助。
总之,在解决问题时要确保使用的是与 Dubbo 兼容的版本的 Alibaba Nacos Config,并避免出现多个版本的 JAR 包导致冲突。
相关问题
使用config出现An attempt was made to call a method that does not exist. The attempt was made from the following location:
使用config出现"An attempt was made to call a method that does not exist"的错误是由于尝试调用一个不存在的方法造成的。具体的错误发生位置可以在引用中看到。根据引用中的信息可以得知,该错误发生在GatewayAutoConfiguration.java文件的第612行,具体是在gatewayHttpClient方法内部发生的。这个错误可能是由于在调用该方法时使用了一个不存在的方法或者错误的参数引起的。我们需要对该方法的调用进行检查,确保方法名和参数的正确性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Gateway启动失败:An attempt was made to call a method that does not exist.](https://blog.csdn.net/qq_40788718/article/details/107841385)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
An attempt was made to call a method that does not exist. The attempt was made from the following location
在解决"An attempt was made to call a method that does not exist"这个错误时,根据提供的引用内容,可以尝试以下几种方法:
1. 删除提示的jar包:根据引用,可以尝试删除相关的jar包。这样做可能会解决该错误。
2. 在当前项目的库中删除提示的jar包:根据引用,可以在当前项目的库中删除提示的jar包,这样只会调用指定路径下的jar包。再次尝试启动项目时,可能会正常运行。
3. 在项目依赖中移除对应版本的jar包:根据引用,可以在项目依赖中移除对应版本的jar包,然后重新运行项目。这一步也可以直接移除对应版本的jar包,从而解决该错误。
你可以根据具体的情况选择其中一种或多种方法来解决这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [An attempt was made to call a method that does not exist. The attempt was made from the following](https://blog.csdn.net/qq_50954361/article/details/127945517)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [解决An attempt was made to call a method that does not exit问题](https://blog.csdn.net/Egolalal/article/details/121350898)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]