问题描述
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 612 out of bounds for char[512]
at java.base/java.lang.System.arraycopy(Native Method)
at com.alibaba.fastjson2.JSONReaderUTF16.readString(JSONReaderUTF16.java:3259)
at com.alibaba.fastjson2.JSONReader.readObject(JSONReader.java:3777)
at com.alibaba.fastjson2.JSONReader.readArray(JSONReader.java:4118)
at com.alibaba.fastjson2.JSONReader.readObject(JSONReader.java:3765)
at com.alibaba.fastjson2.JSONReader.read(JSONReader.java:3539)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:476)
环境信息
请填写以下信息:
- JDK信息: [e.g.:Openjdk 17]
- 版本信息:[e.g.:Fastjson2 2.0.61]
重现步骤
如何操作可以重现该问题:
if (!StringUtils.isEmpty(appSrvRequestStr)) {
appSrvRequest = JSON.parseObject(appSrvRequestStr, AppSrvRequest.class);
}
期待的正确结果
应该正常序列化的,不知道为什么现在直接抛异常了
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 612 out of bounds for char[512]
提交参数:
{"subjectIds":"202607021637011001502","subjectItemTypeRelations":[{"itemTypeName":"构形填空题","isComposite":0,"ruleConfig":"[{"key":"childItemHasAttrs","value":false,"desc":"有无小题属性","type":"radio","options":"[{\"label\":\"有\",\"value\":true},{\"label\":\"没有\",\"value\":false}]","valueDesc":"没有","group":"","config":"{}"},{"key":"attachmentFile","value":false,"desc":"有无附件","type":"radio","options":"[{\"label\":\"有\",\"value\":true},{\"label\":\"无\",\"value\":false}]","valueDesc":"无","group":"","config":"{}"},{"key":"itemNum","value":15,"desc":"小题数量","type":"inputNumber","options":"","valueDesc":15,"group":"1"},{"key":"maxFillInputValidate","value":true,"desc":"填空数量校验","type":"radio","options":"[{\"label\":\"校验\",\"value\":true},{\"label\":\"不校验\",\"value\":false}]","valueDesc":"校验","group":"1","config":"{}"}]","itemTypeDesc":"One of the most significant benefits of online learning is that it breaks down geographical 1. ______ (barrier). Students from different parts of the world can take the same course and interact with each other. online learning also has some 2. ______ (drawback). For example, it requires a high level of self - discipline. To overcome these challenges, students need to develop good study habits. As technology continues to advance, online learning is likely to become even more 3. ______ (access) and effective. It has the potential to revolutionize the way we learn and open up new opportunities for education.\n答案:1.barriers、2.drawbacks、3.accessible","itemTypeId":"202508061917241002515","scoreModifyFlag":0,"pid":"-1"}]}
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
问题描述
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 612 out of bounds for char[512]
at java.base/java.lang.System.arraycopy(Native Method)
at com.alibaba.fastjson2.JSONReaderUTF16.readString(JSONReaderUTF16.java:3259)
at com.alibaba.fastjson2.JSONReader.readObject(JSONReader.java:3777)
at com.alibaba.fastjson2.JSONReader.readArray(JSONReader.java:4118)
at com.alibaba.fastjson2.JSONReader.readObject(JSONReader.java:3765)
at com.alibaba.fastjson2.JSONReader.read(JSONReader.java:3539)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:476)
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
if (!StringUtils.isEmpty(appSrvRequestStr)) {
appSrvRequest = JSON.parseObject(appSrvRequestStr, AppSrvRequest.class);
}
//可在此输入示例代码期待的正确结果
应该正常序列化的,不知道为什么现在直接抛异常了
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 612 out of bounds for char[512]
提交参数:
{"subjectIds":"202607021637011001502","subjectItemTypeRelations":[{"itemTypeName":"构形填空题","isComposite":0,"ruleConfig":"[{"key":"childItemHasAttrs","value":false,"desc":"有无小题属性","type":"radio","options":"[{\"label\":\"有\",\"value\":true},{\"label\":\"没有\",\"value\":false}]","valueDesc":"没有","group":"","config":"{}"},{"key":"attachmentFile","value":false,"desc":"有无附件","type":"radio","options":"[{\"label\":\"有\",\"value\":true},{\"label\":\"无\",\"value\":false}]","valueDesc":"无","group":"","config":"{}"},{"key":"itemNum","value":15,"desc":"小题数量","type":"inputNumber","options":"","valueDesc":15,"group":"1"},{"key":"maxFillInputValidate","value":true,"desc":"填空数量校验","type":"radio","options":"[{\"label\":\"校验\",\"value\":true},{\"label\":\"不校验\",\"value\":false}]","valueDesc":"校验","group":"1","config":"{}"}]","itemTypeDesc":"One of the most significant benefits of online learning is that it breaks down geographical 1. ______ (barrier). Students from different parts of the world can take the same course and interact with each other. online learning also has some 2. ______ (drawback). For example, it requires a high level of self - discipline. To overcome these challenges, students need to develop good study habits. As technology continues to advance, online learning is likely to become even more 3. ______ (access) and effective. It has the potential to revolutionize the way we learn and open up new opportunities for education.\n答案:1.barriers、2.drawbacks、3.accessible","itemTypeId":"202508061917241002515","scoreModifyFlag":0,"pid":"-1"}]}
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。