net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Terracotta Project Issue Tracker by Fiona OShea, 1 year ago
Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]
via Terracotta Project Issue Tracker by Fiona OShea, 1 year ago
Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]
via terracotta.org by Unknown author, 2 years ago
Failure while decoding key java.nio.HeapByteBuffer
via Terracotta by omkreddy, 6 months ago
Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]
via Terracotta Project Issue Tracker by Manuel Dominguez Sarmiento, 1 year ago
Failure while decoding key java.nio.HeapByteBuffer[pos=35 lim=35 cap=35]
via Terracotta Project Issue Tracker by Manuel Dominguez Sarmiento, 1 year ago
Failure while decoding key java.nio.HeapByteBuffer[pos=35 lim=35 cap=35]
java.io.EOFException:
at java.io.DataInputStream.readByte(DataInputStream.java:261)
at net.sf.ehcache.store.offheap.portability.AbstractEhcachePortability.readObjects(AbstractEhcachePortability.java:72)
at net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.decode(EhcacheKeyPortability.java:51)
at net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.decode(EhcacheKeyPortability.java:55)
at net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.equals(EhcacheKeyPortability.java:60)
at com.terracottatech.offheapstore.storage.PortabilityBasedStorageEngine.equalsKey(PortabilityBasedStorageEngine.java:108)
at com.terracottatech.offheapstore.OffHeapHashMap.keyEquals(OffHeapHashMap.java:914)
at com.terracottatech.offheapstore.OffHeapHashMap.put(OffHeapHashMap.java:466)
at com.terracottatech.offheapstore.OffHeapHashMap.put(OffHeapHashMap.java:408)
at com.terracottatech.offheapstore.AbstractLockedOffHeapHashMap.put(AbstractLockedOffHeapHashMap.java:121)
at com.terracottatech.offheapstore.concurrent.AbstractConcurrentOffHeapMap.put(AbstractConcurrentOffHeapMap.java:188)
at net.sf.ehcache.store.offheap.disk.OffHeapDiskStore.put(OffHeapDiskStore.java:129)
at net.sf.ehcache.store.FrontEndCacheTier.put(FrontEndCacheTier.java:261)
at net.sf.ehcache.Cache.putInternal(Cache.java:1459)
at net.sf.ehcache.Cache.put(Cache.java:1387)
at net.sf.ehcache.Cache.put(Cache.java:1352)
at in.co.test.cache.Cache.put(Cache.java:47)

Users with the same issue

4 times, 1 day ago
4 times, 3 months ago
16 times, 3 months ago
Once, 5 months ago
Once, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.