Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize class com.alibaba.fastjson2.JSONFactory #677

Closed
subenkun opened this issue Aug 12, 2022 · 2 comments
Closed

Could not initialize class com.alibaba.fastjson2.JSONFactory #677

subenkun opened this issue Aug 12, 2022 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@subenkun
Copy link

问题描述

版本2.0.10升级2.0.11后报错
1660273823023

环境信息

  • OS信息: windows 10
  • JDK信息:jdk 1.8.0_271
  • 版本信息:2.0.11

重现步骤

{"record":{"rowid":"374","Userid":"1234","name":"test","sex":"男","phone":"","CertID":"","dptmntName":"默认","time":"2022-08-12 11:11:21","UnlockMode":"face","image":"xxxx"},"DevCode":"xxxxxxxxx","cmd":"SendRec"}

public class MqttReceiveMessageBody {

private String cmd;

@JSONField(name = "DevCode")
private String devCode;

private String record;

}

JSONObject.parseObject(payload, MqttReceiveMessageBody.class)

@subenkun subenkun added the bug Something isn't working label Aug 12, 2022
@wenshao wenshao added this to the 2.0.12 milestone Aug 12, 2022
@wenshao
Copy link
Member

wenshao commented Aug 12, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.12-SNAPSHOT/
问题已修复,请帮忙用2.0.12-SNAPSHOT版本验证,2.0.12版本预计在8月21日前发布

@wenshao wenshao closed this as completed Aug 13, 2022
@wenshao
Copy link
Member

wenshao commented Aug 20, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.12
问题已修复,请用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants