alibaba / fastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
Apache License 2.0
25.75k stars 6.5k forks source link

JsonException #1960

Open LuoCang opened 6 years ago

LuoCang commented 6 years ago

安卓app进行正式打包,运行出现com.alibaba.fastjson.util.JSONException:default constructor not found.class com...bean. 对实体类添加了无参构造器和有参构造器依旧出现这个问题,使用Java语言。

shangfabao commented 6 years ago

同样有这个问题,但是是java版本,1.2.47 Resolved exception caused by Handler execution: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: default constructor not found. class de.codecentric.boot.admin.server.domain.values.Registration; nested exception is com.alibaba.fastjson.JSONException: default constructor not found. class de.codecentric.boot.admin.server.domain.values.Registration 这个类没有无参的构造器

LuoCang commented 6 years ago

@shangfabao 我的版本也是1.2.47 ,java版本, 我debug运行项目没有问题,在正式打包运行后,出现的这个错误。