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-184.108.40.206.2.jar:220.127.116.11.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