Premise:
the feign call of the docking company recently involves the mutual call between two business systems, and I encountered the following errors in the process of processing, so I’ll take them out and record them
Error prompt
feign.codec.EncodeException: Type definition error: [simple type, class java.util.Collections$3]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for… request
reflection
When I see the request, I think of the problem of request parameters. I don’t know what the problem is
I took a closer look at the exposed fegin client interface. The request object was passed in the interface. In order to be lazy, I didn’t write multiple method parameters
mborderservice service class
when I changed the code into multiple parameters and passed them directly, the problem was solved
client calling code, so there was no problem
Read More:
- Feign Error: Load balancer does not have available server for client:XXX
- Feign call Error: duplicate name [How to Solve]
- [Solved] Feign Call Port Error: HttpMessageNotReadableException:JSON parse error:Illegal character ((CTRL-CHAR, code 31)
- Feign calls cannot use “_” to report errors [How to Solve]
- Microservice call exceptions: error feign.RetryableException: Read timed out executing POST http://xxx…….
- [Solved] Spring integrates canal to call feign error: pool-1-thread-1
- How to Solve Error-SpringCloud-Feign and Sentinel integrate error
- C# Bug Fixed InvalidCastException: Cannot cast from source type to destination type.
- [Solved] Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- JAVA Error: package org.apache.commons.codec.binary does not exist
- OpenFeignClient Use Object to Receive text/plain Type Return Error
- Explicit and implicit conversion of Java data type
- Defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configuration.
- [Solved] Consider defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configu
- [Solved] IDEA JPA Custome Query Error: Can‘t resolve symbol ‘Type‘
- Java Error: No enclosing instance of type Main is accessible. Must qualify the allocation with an encl
- Springboot startup error: Field elasticsearchRestTemplate in cn.lili.modules.material.serviceImpl.QrMaterialServiceImpl required a bean of type
- [Solved] BindingException: Type interface XXX is not known to the MapperRegistry
- [Solved] ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed t
- [Solved] No validator could be found for constraint ‘javax.validation.constraints.NotBlank’ validating type ‘java.lang.String’