3.5K Unstar Star 9.7K Fork 4.1K

卓源软件 / JeeSite 4.2

JSON.toJSONString内存溢出

Closed
patern_pan  Opened this issue

该问题是怎么引起的?

版本4.1.4
将一个对象列表进行字符串输出JSON.toJSONString(prodOrder)

重现步骤

报错信息

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.StackOverflowError: null
at java.lang.String.toLowerCase(String.java:2670)
at com.jeesite.common.lang.ObjectUtils.toStringIgnoreNull(ObjectUtils.java:107)
at com.jeesite.common.lang.ObjectUtils.toStringIgnoreNull(ObjectUtils.java:96)
at com.jeesite.modules.sys.utils.CorpUtils.getCurrentCorpCode(bm:191)
at com.jeesite.common.entity.BaseEntity.getCorpCode(id:434)
at com.alibaba.fastjson.serializer.ASMSerializer_2_User.write(Unknown Source)

6732 thinkgem 1578914432 total 2 participants

Comments (1)

6732 thinkgem 1578914432
卓源软件 2020-09-14 12:05 owner

推荐使用 JsonMapper.toJson()

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.2

Search