com.tangosol.io.lh.LHIOException:… Primary file, Reading, Group XXX, Frame YYY: End of file reached
Case
Migrating a cache from EhCache to Tangosol / Oracle Coherence, I got the following error when the cache started to be filled:
com.tangosol.io.lh.LHIOException:C:\DOCUME~1\JonathanLalou\LOCALS~1\Temp\jonathanLalouCache.store, Primary file, Reading, Group 880, Frame 880: End of file reached
Quick Fix
I could not fix the issue itself. The documentation is not abundant on the subject. I never enjoyed working on closed source libraries. Anyway, a quick fix consists in replacing the LH store with a Berkeley DB store, ie replacing:
<lh-file-manager><file-name>{cache-name}.store</file-name></lh-file-manager>
with some kind of:
<bdb-store-manager></bdb-store-manager>