当前位置:网站首页>Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
2022-06-28 06:02:00 【zhou_ zhao_ xu】
error message :
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.aliyun.bizworks.centers.user.businessdomain.identification.protocols.oidc.model.OidcProtocolAccessToken` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (byte[])"["com.aliyun.bizworks.centers.user.businessdomain.identification.protocols.oidc.model.OidcProtocolAccessToken",{"accessToken":"69O76SX7USMU","scope":"openid all","issuedAt":1653546793173,"expiresIn":6000}]"; line: 1, column: 113]
Error resolution :

@Data
@Builder
public class OidcProtocolAccessToken {
private String accessToken;
private String scope;
private Long issuedAt;
private Long expiresIn;
}
Cannot construct instance , There is no default build function , View entities , Provided only @Data
and @Builder, There is no default constructor
Use alone @Data annotation , Generate a parameterless constructor .
Use alone @Builder annotation , Generate a full attribute constructor .
@Data + @Builder annotation : There is no default parameterless constructor . Even if you add a parameterless constructor manually or use only @NoArgsConstructor Comments will report errors
terms of settlement :
Simultaneous addition @AllArgsConstructor and @NoArgsConstructor annotation
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OidcProtocolAccessToken {
private String accessToken;
private String scope;
private Long issuedAt;
private Long expiresIn;
}
边栏推荐
- Oracle condition, circular statement
- Jenkins继续集成2
- Ethereum Classic的难度计算|猿创征文
- Syn retransmission caused by IPVS
- High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
- Filecoin hacker song developer competition
- V4l2 driver layer analysis
- Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
- Oracle fundamentals summary
- 马赛克数据增强 mosaic
猜你喜欢
随机推荐
[MySQL] all query tables contain 20million data -- how to optimize SQL
How the third-party libraries in cocoapod reference local header files
Select trigger event from easyUI drop-down box
Video tutorial on website operation to achieve SEO operation [21 lectures]
easyui下拉框选中触发事件
Binder interview: memory management unit
Flink window mechanism (two waits and the last explanation)
pkg打包node工程(express)
pytorch详解
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
Where is the era bonus for developers?
Oracle fundamentals summary
Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
YYGH-BUG-02
[untitled]
Use of JDBC
Using pytorch and tensorflow to calculate the confusion matrix of classification model
Sklearn Feature Engineering (summary)
Data midrange: implementation and summary of AI midrange
Data center: Seven Swords of data governance








