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

升级到Springboot3.2.0 提示 java.lang.StackOverflowError: null 有没有兄弟遇到? #2103

Closed
moto72 opened this issue Dec 16, 2023 · 3 comments
Labels
bug Something isn't working fixed question Further information is requested
Milestone

Comments

@moto72
Copy link

moto72 commented Dec 16, 2023

今天升级到spring boot 3.2.0 的时候,提示 java.lang.StackOverflowError: null

*java.lang.StackOverflowError: null
at com.alibaba.fastjson2.JSONWriter.isWriteTypeInfo(JSONWriter.java:380)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:386)
at com.alibaba.fastjson2.writer.OWG_14_8_ResolvableType.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterObject.write(FieldWriterObject.java:352)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:475)
at com.alibaba.fastjson2.writer.OWG_14_8_ResolvableType.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterObject.write(FieldWriterObject.java:352)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:475)
at com.alibaba.fastjson2.writer.OWG_14_8_ResolvableType.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterObject.write(FieldWriterObject.java:352)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:475)
………………

@moto72 moto72 added the question Further information is requested label Dec 16, 2023
@wenshao wenshao added this to the 2.0.44 milestone Dec 21, 2023
@wenshao wenshao added the bug Something isn't working label Dec 21, 2023
@wenshao
Copy link
Member

wenshao commented Dec 21, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.44-SNAPSHOT/
问题重现并且修复,请帮忙用2.0.44-SNAPSHOT版本验证,2.0.44版本预计在12月24日(周末)发布

@wenshao
Copy link
Member

wenshao commented Dec 24, 2023

@wenshao wenshao closed this as completed Dec 24, 2023
@OneFAnn
Copy link

OneFAnn commented Jan 30, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.44 请用新版本

Caused by: java.lang.StackOverflowError: null
at java.base/java.time.temporal.ChronoField.checkValidValue(ChronoField.java:718)
at java.base/java.time.LocalDate.ofEpochDay(LocalDate.java:345)
at java.base/java.time.LocalDateTime.ofEpochSecond(LocalDateTime.java:424)
at java.base/java.time.ZonedDateTime.create(ZonedDateTime.java:458)
at java.base/java.time.ZonedDateTime.ofInstant(ZonedDateTime.java:411)
at com.alibaba.fastjson2.writer.FieldWriterDate.writeDate(FieldWriterDate.java:265)
at com.alibaba.fastjson2.writer.FieldWriterDateMethod.write(FieldWriterDateMethod.java:61)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:477)
at com.alibaba.fastjson2.writer.OWG_3_9_Customer.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterObject.write(FieldWriterObject.java:381)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:477)
at com.alibaba.fastjson2.writer.OWG_2_14_GoodsOrder.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterObject.write(FieldWriterObject.java:381)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:477)
at com.alibaba.fastjson2.writer.OWG_4_13_GoodsOrderDetail.write(Unknown Source)
at com.alibaba.fastjson2.writer.FieldWriterList.writeList(FieldWriterList.java:348)
at com.alibaba.fastjson2.writer.FieldWriterListMethod.write(FieldWriterListMethod.java:78)
at com.alibaba.fastjson2.writer.ObjectWriterAdapter.writeWithFilter(ObjectWriterAdapter.java:477)

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

No branches or pull requests

3 participants