alibaba / alibaba/fastjson2

[BUG] httpmessageconverter进行序列化偶发出现空对象. fastjson2 2.0.57 2.0.56 2.0.53都会出现,其他未试,可能也有问题

Open
#3,598 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

在httpmessgeconverter里配置fastjson2序列化,data里是有放数据的
result:{
code:200,
msg:"success",
data:{}
}也遇到偶发的data数据为空。启动服务偶发会出现。都是以重启方式解决。跟踪代码发现是writeobject 时候给的out出现问题。请问啥时候能发布出来解决。目前项目影响挺大

Contributor guide

Open the contributing guide

Research direction

Start at the HttpMessageConverter serialization path and inspect the writeObject call, especially the provided out object. Reproduce the intermittent startup case using fastjson2 2.0.53, 2.0.56, or 2.0.57, then verify that populated data is no longer serialized as an empty object without requiring a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.