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-220.127.116.11.2.jar:18.104.22.168.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