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

阅读: 评论:0

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

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客户端-->

本文发布于:2024-02-02 01:36:13,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170681323340572.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:method   invoke   Failed   service   provi
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23