[BUG]同样一个的接口JSON数据在windows tomcat jdk8 环境下正常,但是在麒麟 ARM 东方通 openjdk8下异常
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
同样一个的接口JSON数据在windows tomcat jdk8 环境下正常,但是在麒麟 v10系统 ARM架构 东方通 openjdk8下异常,特别说明:在centos8 x86 + 东方通环境下是正常的。故推断应该跟操作系统环境相关
Caused by: com.alibaba.fastjson2.JSONException: expect ':', but 101, offset 3, character ", line 1, column 3, fastjson-version 2.0.61 [{"extFeildsMap":{},"id":"965016","orgCode":"Headquarters","orgId":"1","orgName":"总部","userId":"33940"}]
at com.alibaba.fastjson2.JSONReaderUTF16.readFieldNameHashCode(JSONReaderUTF16.java:1163) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson2.reader.ObjectReaderImplObject.readObject(ObjectReaderImplObject.java:78) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson2.JSONReader.read(JSONReader.java:3280) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson2.JSON.parse(JSON.java:142) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson2.JSON.toJSON(JSON.java:4095) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson2.JSON.toJSON(JSON.java:4056) ~[fastjson2-2.0.62.jar:?]
at com.alibaba.fastjson.JSON.toJSON(JSON.java:2311) ~[fastjson-2.0.62.jar:?]
### 环境信息
*请填写以下信息:*
- OS信息: 麒麟ARM / 东方通容器7.0.4.4
- JDK信息:JDK8
- 版本信息:fastjson2.0.63
Contributor guide
Research direction
Start by reproducing the reported JSON parsing failure on 麒麟 ARM with 东方通 and JDK 8, checking the stated fastjson versions because the report mentions both 2.0.63 and 2.0.62. Trace the failure from JSONReaderUTF16.java:1163 through ObjectReaderImplObject and JSON.toJSON, then compare behavior with the reported Windows Tomcat and CentOS x86 environments. Done means the supplied JSON is parsed consistently in the affected environment with regression coverage.
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
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100