zhangchaoxiang opened a new issue, #1757: URL: https://github.com/apache/fury/issues/1757
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/fury/issues) and found no similar issues. ### Version 0.6.0 ### Component(s) Java ### Minimal reproduce step ThreadSafeFury fury = Fury.builder().requireClassRegistration(false).withCompatibleMode(CompatibleMode.COMPATIBLE).buildThreadSafeFury(); ByteArrayOutputStream bas = new ByteArrayOutputStream(); fury.serialize(bas, Lists.newArrayList(1, 2, 3)); fury.serialize(bas,Lists.newArrayList(10,9,7)); fury.serialize(bas,Lists.newArrayList(7,5,4)); bas.flush(); InputStream bis = new ByteArrayInputStream(bas.toByteArray()); FuryInputStream stream = of(bis); Object lobj1 = fury.deserialize(stream); Object lobj2 = fury.deserialize(stream); Object lobj3 = fury.deserialize(stream); ### What did you expect to see? no exception ### What did you see instead? java.lang.IndexOutOfBoundsException: No enough data in the stream java.io.ByteArrayInputStream@36f0f1be at org.apache.fury.io.FuryInputStream.fillBuffer(FuryInputStream.java:66) at org.apache.fury.memory.MemoryBuffer.readerIndex(MemoryBuffer.java:1274) at org.apache.fury.resolver.ClassResolver.readClassDefs(ClassResolver.java:1469) at org.apache.fury.Fury.deserialize(Fury.java:758) at org.apache.fury.Fury.deserialize(Fury.java:780) at org.apache.fury.Fury.deserialize(Fury.java:773) at org.apache.fury.ThreadLocalFury.deserialize(ThreadLocalFury.java:160) ### Anything Else? In version 0.5.1 it ran successfully, but after upgrading to 0.6.0 an exception was thrown, which is related to enabling COMPATIBLE. ### 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]
