解决 Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: io.seata.spring.boot.autoconfigure.SeataAutoConfiguration.seataAutoDataSourceProxyCreator(SeataAutoConfiguration.java:74) The following method did not exist: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator.<init>(Z[Ljava/lang/String;)V The method's class, io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator, is available from the following locations:用中文解决
时间: 2023-07-15 15:10:52 浏览: 177
这个错误提示是说尝试调用一个不存在的方法,具体是在 io.seata.spring.boot.autoconfigure.SeataAutoConfiguration 的第74行,该方法是 seataAutoDataSourceProxyCreator。而且提示说 io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator 这个类的构造方法也不存在,但是它可以从某些位置得到。解决这个问题需要检查代码中是否存在拼写错误或者版本不匹配的问题,可以尝试更新相关库的版本或者查看文档以获得正确的方法调用方式。
相关问题
使用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 ]