Caused by java io EOFException Oracle Coherence
While working with Oracle Coherence cache and during deserialization if you are getting below exception:
Caused by: java.io.EOFException
at com.tangosol.io.AbstractByteArrayReadBuffer$ByteArrayBufferInput.readPackedInt(AbstractByteArrayReadBuffer.java:503) ~[coherence-22.214.171.124.2.jar:126.96.36.199.2]
Solution: This exception happens if you forget to call PoPofReader readRemainder() or PofWriter writeRemainder(null) method after method deserialization OR serialization is over as shown below:
Please include above method to your class.
- Example serialization class:
For more information please refer Oracle Coherence tutorial