
服务调度
OpenFeign、Dubbo
旭东怪
这个作者很懒,什么都没留下…
展开
-
Dubbo No registry config found or it‘s not a valid config! The registry config is问题解决
1、当前服务没有注册Dubbo导致报错。原创 2022-09-01 17:18:37 · 7913 阅读 · 0 评论 -
Open Feign FeignException$MethodNotAllowed: status 405 reading Xxx#xxx()问题解决
问题描述:feign.FeignException$MethodNotAllowed: status 405 reading UserService#getUserList()问题分析:1、被调用的接口地址由多部分组成,比如项目配置了/base地址,Controller配置了/user地址,接口配置了/getUserList地址,而调用的接口地址只配了/getUserList地址,导致报错。 @PostMapping("/getUserList") List<User&原创 2022-05-13 20:37:27 · 2291 阅读 · 0 评论 -
OpenFeign Could not extract response: no suitable HttpMessageConverter found for response type 问题解决
问题描述:feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found for response type [com.common.util.Result<com.entity.User>] and content type [text/html]问题分析:1、调用接口地址与被调用接口地址不一致,导致报错。被调用的接口:@RestControll原创 2022-04-19 19:14:01 · 4348 阅读 · 2 评论 -
Dubbo TimeoutException: Waiting server-side response timeout by scan timer问题解决
问题描述:Caused by: java.util.concurrent.ExecutionException: org.apache.dubbo.remoting.TimeoutException: Waiting server-side response timeout by scan timer. start time: 2021-10-14 16:05:32.671, end time: 2021-10-14 16:05:42.688, client elapsed: 1 ms, server原创 2021-10-16 20:59:45 · 12852 阅读 · 2 评论 -
Dubbo Failed to bind NettyServer on /192.168.56.1:xx,cause:Address already in use:bind问题解决
问题描述:Caused by: org.apache.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.56.1:20882, cause: Address already in use: bind问题分析:1、当前项目的dubbo端口20882被占用了,导致报错。dubbo: scan: base-packages: com.basic protocol: ...原创 2021-10-13 17:24:41 · 5769 阅读 · 0 评论 -
Java NullPointerException: null问题3种情况(Java、Dubbo、EasyExcel)解决
问题描述:java.lang.NullPointerException: null问题分析:1、使用了equals()方法,但是使用了该方法的变量为null,导致报错。解决办法:String str=null;if(str!=null&&str.equals("0")){ return true;}return false;...原创 2021-02-08 10:23:23 · 6949 阅读 · 0 评论 -
Dubbo Failed to check the status of the service.No provider available for the service from问题解决
问题描述:Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.service.UserService.No provider available for the service com.service.UserService from the url spring-cloud://localhost:9090/org.apache.dubbo.registry.Regist原创 2021-09-02 16:20:06 · 1462 阅读 · 1 评论 -
Dubbo Serialized class xxx.Xxx must implement java.io.Serializable问题解决
问题描述:Caused by: java.lang.IllegalStateException: Serialized class com.lihero.system.api.domain.water.markSetting.MarkSettingQueryATK must implement java.io.Serializable原创 2021-06-11 15:23:16 · 5168 阅读 · 0 评论 -
Dubbo RpcException:Failed to invoke the method xxx in the service xxx问题解决
问题描述:org.apache.dubbo.rpc.RpcException: Failed to invoke the method getUserInfo in the service com.api.service.user.UserService. No provider available for the com.api.service.user.UserService from registry localhost:9090 on the consumer localhost using t原创 2021-05-07 10:28:54 · 33640 阅读 · 5 评论 -
Dubbo Data length too large: xxx, max payload: xxx问题解决
问题描述:Caused by: java.util.concurrent.ExecutionException: org.apache.dubbo.remoting.RemotingException: Data length too large: 15557929, max payload: 8388608, channel: NettyChannel问题分析:1、Dubbo接口返回数据量太大,Dubbo接口最大限制为8M。解决办法:分批进行调取Dubbo接口,然后拼接起来再返回。...原创 2021-06-28 19:15:35 · 2951 阅读 · 0 评论 -
Dubbo NoSuchMethodException: Not found method “xxx“ in class xxx问题解决
问题描述:Caused by: org.apache.dubbo.common.bytecode.NoSuchMethodException: Not found method "getUserInfo" in class com.UserService.问题分析:1、UserService的getUserInfo方法已经修改,但是UserService对应的jar包没有更新。解决办法:把jar包删除,重新获取一遍。...原创 2021-05-20 11:26:17 · 3857 阅读 · 0 评论 -
Spring Cloud OpenFeign使用
一、Maven添加openFeign依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-feign</artifactId></dependency>二、生产者代码...原创 2020-03-26 11:25:11 · 446 阅读 · 0 评论 -
OpenFeign出现Failed to introspect Class org.springframework.cloud.openfeign.FeignClientFactoryBean问题解决
我所用的框架是:SSM+Spring Boot + Eureka+OpenFeign+Maven完整报错:Failed to introspect Class [org.springframework.cloud.openfeign.FeignClientFactoryBean] from ClassLoader我的pom.xml已经加入了以下依赖:<depende...原创 2020-04-24 21:01:49 · 16519 阅读 · 1 评论 -
OpenFeign 出现The bean xxx.FeignClientSpecification could not be registered问题解决
问题描述:The bean 'endservice.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.以上问题报错的意思是一个项目中存在多个接口调用@FeignClient("endservice")问题解决:允许一个项目中存在多个接口...原创 2020-05-21 23:02:31 · 51552 阅读 · 17 评论 -
OpenFeign 接口调用出现400错误
Feign接口调用出现400错误可能有很多种情况,我就来讲一下我的碰到400错误。400报错原因:Feign消费者调用被消费者接口时传入参数为null,导致400错误。报错未处理之前://Feign消费者@RequestMapping("/test")public void test(String testStr){}报错处理之后://Feign消费者@Requ...原创 2020-03-10 14:23:19 · 9117 阅读 · 0 评论 -
OpenFeign FeignException$NotFound: [404] during [GET] to [http://xxxx/xxx/xxx]问题解决
开发框架:Spring Boot+SSM+Maven+Eureka+Zuul+OpenFeign问题描述:feign.FeignException$NotFound: [404] during [GET] to [http://XudongBack/user/getUserExtById?username=1] [UserService#getUserExtById(String)]: [{"timestamp":"2020-09-19T04:40:22.806+00:00","status":原创 2020-09-19 14:06:55 · 14880 阅读 · 14 评论