net.sf.ehcache.CacheException

Failure while decoding key java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web236

  • via Unknown by Unknown author,
  • via Unknown by Fiona OShea,
  • via Unknown by Fiona OShea,
  • Stack trace

    • 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) ... 14 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    PierrePierre
    Once,
    Unknown UserUnknown User
    Once,
    Hiren AmaliyarHiren Amaliyar
    Once,
    Unknown UserUnknown User
    Once,
    Indri YunitaIndri Yunita
    4 times, last one
    15 more bugmates