Caused by java io EOFException Oracle Coherence

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-12.1.3.0.2.jar:12.1.3.0.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:

Caused by java io EOFException Oracle Coherence

Please include above method to your class.

  • Example serialization class:

For more information please refer Oracle Coherence tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *