当前位置:网站首页>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 05:49:00 【zhou_zhao_xu】
错误信息:
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]
错误解析:

@Data
@Builder
public class OidcProtocolAccessToken {
private String accessToken;
private String scope;
private Long issuedAt;
private Long expiresIn;
}
无法构造实例,没有默认构建函数,查看实体,只提供了@Data
和@Builder,没有默认的构造器
单独使用@Data注解,生成无参数构造方法。
单独使用@Builder注解,生成了全属性的构造方法。
@Data + @Builder注解:没有了默认的无参构造方法。即使手动添加无参数构造方法或者只用@NoArgsConstructor注解都会报错
解决办法:
同时添加@AllArgsConstructor和@NoArgsConstructor注解
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OidcProtocolAccessToken {
private String accessToken;
private String scope;
private Long issuedAt;
private Long expiresIn;
}
边栏推荐
- 数据中台:一篇带你深入浅出了解数据中台
- 数据仓库:分层设计详解
- How popular are FB and WhatsApp mass messages in 2022?
- 深度学习19种损失函数
- Cryptography notes
- pkg打包node工程(express)
- Syn retransmission caused by IPVS
- [MySQL] all query tables contain 20million data -- how to optimize SQL
- What is the e-commerce conversion rate so abstract?
- The length of pytorch dataloader the difference between epoch and iteration
猜你喜欢

How to add live chat in your Shopify store?

RL 实践(0)—— 及第平台辛丑年冬赛季【Rule-based policy】

6. 毕业设计温湿度监控系统(ESP8266 + DHT11 +OLED 实时上传温湿度数据给公网服务器并在OLED显示屏上显示实时温湿度)

pytorch详解

File foundation - read / write, storage

What is the e-commerce conversion rate so abstract?

拉萨手风琴
![[C language practice - printing hollow square and its deformation]](/img/59/9122a6c8437f12bc28c97304ba9787.png)
[C language practice - printing hollow square and its deformation]

Apple MDM Bypass 免越狱绕过MDM配置锁 免费

6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
随机推荐
YYGH-BUG-02
全球国家(和地区)信息JSON数据
Office is being updated and the application cannot start normally
Introduction to uicollectionviewdiffabledatasource and nsdiffabledatasourcesnapshot
Solution of dam safety automatic monitoring system for medium and small reservoirs
容量调度绝对值配置队列使用与避坑
Jenkins continues integration 2
cocoapod中的第三方库怎么引用本地头文件
Qtcanpool q05: no border
数据中台:一篇带你深入浅出了解数据中台
Mosaic data enhanced mosaic
bash install.sh ********错误
什么是WebRTC?
Detailed usage configuration of the shutter textbutton, overview of the shutter buttonstyle style and Practice
[C language practice - printing hollow square and its deformation]
Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
V4l2 driver layer analysis
Video tutorial on website operation to achieve SEO operation [21 lectures]
一看就会 MotionLayout使用的几种方式
YYGH-6-微信登录