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-18.104.22.168.2.jar:22.214.171.124.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