spaceric opened a new issue, #2441: URL: https://github.com/apache/fory/issues/2441
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version 0.11.2 ### Component(s) Java ### Minimal reproduce step public static Student initStudentList2() { Student student1 = new Student(); student1.setName("jack"); student1.setAge(20); Map<String, Long> score1 = new HashMap<>(); score1.put("math", null); score1.put("english", null); student1.setScore(score1); return student1; } @GetMapping("/stu/rw2") public String foryRW2(){ try { Student details = initStudentList2(); long start = System.currentTimeMillis(); byte[] bytes = ForyUtils.FORY.serialize(details); Student deserialize = ForyUtils.FORY.deserialize(bytes, Student.class); System.out.println("timeļ¼" + (System.currentTimeMillis() - start)); return JSON.toJSONString(deserialize); } catch (Exception e) { System.out.println(e); throw e; } } ### What did you expect to see? deserialize correct ### What did you see instead? java.lang.IndexOutOfBoundsException: readerIndex(54) + length(1) exceeds size(54): org.apache.fory.memory.MemoryBuffer$BoundChecker@61b615b2 at org.apache.fory.memory.MemoryBuffer$BoundChecker.fillBuffer(MemoryBuffer.java:186) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.memory.MemoryBuffer.readUnsignedByte(MemoryBuffer.java:1342) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.serializer.collection.AbstractMapSerializer.readNullChunkKVFinalNoRef(AbstractMapSerializer.java:794) ~[fory-core-0.11.2.jar:0.11.2] at com.lqh.lqhtestweb.fory.StudentForyCodec_0.readFields2$(StudentForyCodec_0.java:382) ~[na:na] at com.lqh.lqhtestweb.fory.StudentForyCodec_0.read(StudentForyCodec_0.java:451) ~[na:na] at org.apache.fory.Fory.readDataInternal(Fory.java:1055) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.Fory.readRef(Fory.java:929) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.Fory.deserialize(Fory.java:883) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.Fory.deserialize(Fory.java:801) ~[fory-core-0.11.2.jar:0.11.2] at org.apache.fory.ThreadLocalFory.deserialize(ThreadLocalFory.java:142) ~[fory-core-0.11.2.jar:0.11.2] ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
