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

Terracotta Project Issue Tracker | Fiona OShea | 4 years ago
  1. 0

    Terracotta Project Issue Tracker

    terracotta.org | 11 months ago
    net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer
  2. 0

    From comments in EHC-973 We are getting similar exception with Java String as cache keys. we are using plain ehcahe with diskpersistent="true" and eternal="true". Version : BigMemory G0 3.7.2 net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0] 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) Caused by: 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) ... 19 more

    Terracotta Project Issue Tracker | 4 years ago | Fiona OShea
    net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]
  3. 0

    From comments in EHC-973 We are getting similar exception with Java String as cache keys. we are using plain ehcahe with diskpersistent="true" and eternal="true". Version : BigMemory G0 3.7.2 net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0] 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) Caused by: 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) ... 19 more

    Terracotta Project Issue Tracker | 4 years ago | Fiona OShea
    net.sf.ehcache.CacheException: Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Aria Pahlavan 8 times, last 1 week ago
  2. poroszd 4 times, last 3 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.EOFException

    No message provided

    at java.io.DataInputStream.readByte()
  2. Java RT
    DataInputStream.readByte
    1. java.io.DataInputStream.readByte(DataInputStream.java:261)
    1 frame
  3. net.sf.ehcache
    EhcacheKeyPortability.equals
    1. net.sf.ehcache.store.offheap.portability.AbstractEhcachePortability.readObjects(AbstractEhcachePortability.java:72)
    2. net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.decode(EhcacheKeyPortability.java:51)
    3. net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.decode(EhcacheKeyPortability.java:55)
    4. net.sf.ehcache.store.offheap.portability.EhcacheKeyPortability.equals(EhcacheKeyPortability.java:60)
    4 frames
  4. com.terracottatech.offheapstore
    AbstractConcurrentOffHeapMap.put
    1. com.terracottatech.offheapstore.storage.PortabilityBasedStorageEngine.equalsKey(PortabilityBasedStorageEngine.java:108)
    2. com.terracottatech.offheapstore.OffHeapHashMap.keyEquals(OffHeapHashMap.java:914)
    3. com.terracottatech.offheapstore.OffHeapHashMap.put(OffHeapHashMap.java:466)
    4. com.terracottatech.offheapstore.OffHeapHashMap.put(OffHeapHashMap.java:408)
    5. com.terracottatech.offheapstore.AbstractLockedOffHeapHashMap.put(AbstractLockedOffHeapHashMap.java:121)
    6. com.terracottatech.offheapstore.concurrent.AbstractConcurrentOffHeapMap.put(AbstractConcurrentOffHeapMap.java:188)
    6 frames
  5. net.sf.ehcache
    OffHeapDiskStore.put
    1. net.sf.ehcache.store.offheap.disk.OffHeapDiskStore.put(OffHeapDiskStore.java:129)
    1 frame
  6. Ehcache
    Cache.put
    1. net.sf.ehcache.store.FrontEndCacheTier.put(FrontEndCacheTier.java:261)
    2. net.sf.ehcache.Cache.putInternal(Cache.java:1459)
    3. net.sf.ehcache.Cache.put(Cache.java:1387)
    4. net.sf.ehcache.Cache.put(Cache.java:1352)
    4 frames
  7. in.co.test
    Cache.put
    1. in.co.test.cache.Cache.put(Cache.java:47)
    1 frame