[QUESTION]
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
*询问有关本项目的使用和其他方面的相关问题。*
项目在使用fastJson2的过程中出现报错 但是找不到原因
版本是 2.0.11
有时会出现有时又好了
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.ThreadLocal.get()" because "com.alibaba.fastjson2.JSONFactory.readerProviderLocal" is null
at com.alibaba.fastjson2.JSONFactory.getDefaultObjectReaderProvider(JSONFactory.java:330)
at com.alibaba.fastjson.JSON.(JSON.java:52)
... 117 common frames omitted
Contributor guide
Research direction
Start with the reported fastjson2 2.0.11 stack trace at JSONFactory.java:330 and JSON.java:52. Reproduce the intermittent NullPointerException and inspect the initialization path for readerProviderLocal. Done means the cause is isolated and the behavior is verified with a reliable reproduction or regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100