Failed to invoke the method $invoke in the service com.***GenericService. Tried 3 times of the provi

2023-12-20 06:10

本文主要是介绍Failed to invoke the method $invoke in the service com.***GenericService. Tried 3 times of the provi,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

泛化调用报错:
先贴错误
Exception in thread “main” com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method $invoke in the service com.alibaba.dubbo.rpc.service.GenericService. Tried 3 times of the providers [10.2.7.5:20880] (1/1) from the registry 10.2.0.201:2181 on the consumer 172.28.21.91 using the dubbo version 2.6.6. Last error is: Failed to invoke remote method: KaTeX parse error: Expected 'EOF', got '&' at position 73: …ce?anyhost=true&̲application=dub…invoke, parameterTypes=null, arguments=null, attachments={path=com.***.***Service, input=341, dubbo=2.0.2, version=0.0.0}]

在这里插入图片描述
我的目的是想实现dubbo接口的泛化调用,一直被这个问题卡了很久
在网上查了很久,大致分为以下几类
1:调用的参数不正确,如参数类型
2:provider的参数类型没有实现序列化

然而按照以上思路逐一排查,发现问题依然存在,然后求助开发小哥哥,他居然跑通了!一模一样的代码!

引用包点击进去查看dubbo的版本号,发现问题了,他的版本号是,版本高一些

		<dependency><groupId>com.alibaba</groupId><artifactId>dubbo</artifactId><version>2.8.4</version></dependency>

而我的是:

		<dependency><groupId>com.alibaba</groupId><artifactId>dubbo</artifactId><version>2.8.4</version></dependency>

估计旧版本不支持泛化调用,泛化调用时后来才加上的功能,赶紧升级本地dubbo版本,再测试,又报错,引用新包,得到解决

后来报错内容如下,表示类找不到,引用zkClient包得到解决

java.lang.NoClassDefFoundError: org/I0Itec/zkclient/IZkStateListener
		<dependency><groupId>com.101tec</groupId><artifactId>zkclient</artifactId><version>0.10</version></dependency><!--注册中心zk客户端-->

这篇关于Failed to invoke the method $invoke in the service com.***GenericService. Tried 3 times of the provi的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/514995

相关文章

使用TomCat,service输出台出现乱码的解决

《使用TomCat,service输出台出现乱码的解决》本文介绍了解决Tomcat服务输出台中文乱码问题的两种方法,第一种方法是修改`logging.properties`文件中的`prefix`和`... 目录使用TomCat,service输出台出现乱码问题1解决方案问题2解决方案总结使用TomCat,

解决systemctl reload nginx重启Nginx服务报错:Job for nginx.service invalid问题

《解决systemctlreloadnginx重启Nginx服务报错:Jobfornginx.serviceinvalid问题》文章描述了通过`systemctlstatusnginx.se... 目录systemctl reload nginx重启Nginx服务报错:Job for nginx.javas

Python Invoke自动化任务库的使用

《PythonInvoke自动化任务库的使用》Invoke是一个强大的Python库,用于编写自动化脚本,本文就来介绍一下PythonInvoke自动化任务库的使用,具有一定的参考价值,感兴趣的可以... 目录什么是 Invoke?如何安装 Invoke?Invoke 基础1. 运行测试2. 构建文档3.

模版方法模式template method

学习笔记,原文链接 https://refactoringguru.cn/design-patterns/template-method 超类中定义了一个算法的框架, 允许子类在不修改结构的情况下重写算法的特定步骤。 上层接口有默认实现的方法和子类需要自己实现的方法

消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法

消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法   消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法 [转载]原地址:http://blog.csdn.net/x605940745/article/details/17911115 消除SDK更新时的“

android java.io.IOException: open failed: ENOENT (No such file or directory)-api23+权限受权

问题描述 在安卓上,清单明明已经受权了读写文件权限,但偏偏就是创建不了目录和文件 调用mkdirs()总是返回false. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.READ_E

UserWarning: mkl-service package failed to import

安装完成anaconda,并设置了两个环境变量  之后再控制台运行python环境,输入import numpy as np,提示错误 D:\InstallFolder\Anaconda3\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore

Python安装llama库出错“metadata-generation-failed”

Python安装llama库出错“metadata-generation-failed” 1. 安装llama库时出错2. 定位问题1. 去官网下载llama包 2.修改配置文件2.1 解压文件2.2 修改配置文件 3. 本地安装文件 1. 安装llama库时出错 2. 定位问题 根据查到的资料,发现时llama包中的execfile函数已经被下线了,需要我们手动修改代码后

com.google.gson.JsonSyntaxException:java.lang.IllegalStateException异常

用Gson解析json数据的时候,遇到一个异常,如下图: 这个异常很简单,就是你的封装json数据的javabean没有写对,你仔细查看一下javabean就可以了 比如:我的解析的代码是             Gson gson = new Gson();             ForgetJson rb = gson.fromJson(agResult.mstrJson, For

探索Invoke:Python自动化任务的瑞士军刀

文章目录 探索Invoke:Python自动化任务的瑞士军刀背景:为何选择Invoke?`invoke`是什么?如何安装`invoke`?简单的`invoke`库函数使用方法场景应用:`invoke`在实际项目中的使用场景一:自动化测试场景二:代码格式化场景三:部署应用 常见问题与解决方案问题一:命令执行失败问题二:权限不足问题三:并发执行问题 总结 探索Invoke:P