Error information:
feign.codec.DecodeException: Type definition error: [simple type, class com.rouchi.growth.rpc.dto.classroom.response.SimpleClassRoomResponse]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.rouchi.growth.rpc.dto.classroom.response.SimpleClassRoomResponse` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (ByteArrayInputStream); line: 1, column: 61] (through reference chain: com.rouchi.commons.api.Result["data"]->java.util.ArrayList[0])
The main reason for reporting an error is that the return value cannot construct an object. After checking, it is found that there is an object using Lombok, which only writes @ builder, but does not write @ noargsconstructor
. Therefore, just let go of the comment.
Read More:
- Remember a feign error: feign.FeignException : status 404 reading XXXClient#XXMethod(Long)
- java.lang.AbstractMethodError: Receiver class com.alibaba.cloud.sentinel.feign.SentinelContractHolde
- When feign is called, the solution of request method ‘post’ not supported appears
- feign.FeignException$Unauthorized: status 401 reading
- Java and Android commons codec usage and nosuch method error
- Springcloud Feign Upload MultipartFile Error: Current req is not a multipart request Content type not supported
- Unicode encodeerror: ‘GBK’ codec can’t encode character solution
- Python-cp950‘ codec can‘t encode
- Camtasia error: video codec open failed
- Camtasia error :video codec open failed
- Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- Fatal Python error: initfsencoding: unable to load the file system codec
- python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: trunca
- Successfully resolved Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- Python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3:
- Fatal Python error: Py_Initialize: unable to load the file system codec.
- Video player plays flv with error flv: Unsupported audio codec IDX: 7
- Run Python file for the first time with eclipse / pydev: “UTF-8 ‘codec can’t decode byte 0xc4 in position
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX