net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]

Terracotta Project Issue Tracker | Lee Gilbert | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Under heavy read/write load we get the following trace: {code} 2013-04-26 16:48:12,776 ERROR [com.pfmclient.trans.AbstractTCMSQL] (TRNRunner-5-t-11) net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568] (TRNRunner-5-t-11) [AbstractPortfolioData{id=184712, code=190532, currency=NZD, 32}] SQLExceptionException in getTransactions() Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]: net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568] at net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:125) [:] at net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:29) [:] at com.terracottatech.offheapstore.storage.PortabilityBasedStorageEngine.readValue(PortabilityBasedStorageEngine.java:93) [:] at com.terracottatech.offheapstore.OffHeapHashMap.remove(OffHeapHashMap.java:727) [:] at com.terracottatech.offheapstore.AbstractLockedOffHeapHashMap.remove(AbstractLockedOffHeapHashMap.java:165) [:] at com.terracottatech.offheapstore.AbstractOffHeapClockCache.remove(AbstractOffHeapClockCache.java:293) [:] at com.terracottatech.offheapstore.concurrent.AbstractConcurrentOffHeapMap.remove(AbstractConcurrentOffHeapMap.java:206) [:] at net.sf.ehcache.store.offheap.cachingtier.OffHeapCachingTier.remove(OffHeapCachingTier.java:117) [:] at net.sf.ehcache.store.CacheStore.put(CacheStore.java:138) [:] at net.sf.ehcache.Cache.putInternal(Cache.java:1500) [:] at net.sf.ehcache.Cache.put(Cache.java:1426) [:] at net.sf.ehcache.Cache.put(Cache.java:1391) [:] {code}

    Terracotta Project Issue Tracker | 4 years ago | Lee Gilbert
    net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]
  2. 0

    Under heavy read/write load we get the following trace: {code} 2013-04-26 16:48:12,776 ERROR [com.pfmclient.trans.AbstractTCMSQL] (TRNRunner-5-t-11) net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568] (TRNRunner-5-t-11) [AbstractPortfolioData{id=184712, code=190532, currency=NZD, 32}] SQLExceptionException in getTransactions() Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]: net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568] at net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:125) [:] at net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:29) [:] at com.terracottatech.offheapstore.storage.PortabilityBasedStorageEngine.readValue(PortabilityBasedStorageEngine.java:93) [:] at com.terracottatech.offheapstore.OffHeapHashMap.remove(OffHeapHashMap.java:727) [:] at com.terracottatech.offheapstore.AbstractLockedOffHeapHashMap.remove(AbstractLockedOffHeapHashMap.java:165) [:] at com.terracottatech.offheapstore.AbstractOffHeapClockCache.remove(AbstractOffHeapClockCache.java:293) [:] at com.terracottatech.offheapstore.concurrent.AbstractConcurrentOffHeapMap.remove(AbstractConcurrentOffHeapMap.java:206) [:] at net.sf.ehcache.store.offheap.cachingtier.OffHeapCachingTier.remove(OffHeapCachingTier.java:117) [:] at net.sf.ehcache.store.CacheStore.put(CacheStore.java:138) [:] at net.sf.ehcache.Cache.putInternal(Cache.java:1500) [:] at net.sf.ehcache.Cache.put(Cache.java:1426) [:] at net.sf.ehcache.Cache.put(Cache.java:1391) [:] {code}

    Terracotta Project Issue Tracker | 4 years ago | Lee Gilbert
    net.sf.ehcache.CacheException: Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]

    Root Cause Analysis

    1. net.sf.ehcache.CacheException

      Failed while decoding element java.nio.HeapByteBufferR[pos=870563 lim=870568 cap=870568]

      at net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode()
    2. net.sf.ehcache
      EhcacheElementPortability.decode
      1. net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:125)[:]
      2. net.sf.ehcache.store.offheap.portability.EhcacheElementPortability.decode(EhcacheElementPortability.java:29)[:]
      2 frames
    3. com.terracottatech.offheapstore
      AbstractConcurrentOffHeapMap.remove
      1. com.terracottatech.offheapstore.storage.PortabilityBasedStorageEngine.readValue(PortabilityBasedStorageEngine.java:93)[:]
      2. com.terracottatech.offheapstore.OffHeapHashMap.remove(OffHeapHashMap.java:727)[:]
      3. com.terracottatech.offheapstore.AbstractLockedOffHeapHashMap.remove(AbstractLockedOffHeapHashMap.java:165)[:]
      4. com.terracottatech.offheapstore.AbstractOffHeapClockCache.remove(AbstractOffHeapClockCache.java:293)[:]
      5. com.terracottatech.offheapstore.concurrent.AbstractConcurrentOffHeapMap.remove(AbstractConcurrentOffHeapMap.java:206)[:]
      5 frames
    4. net.sf.ehcache
      OffHeapCachingTier.remove
      1. net.sf.ehcache.store.offheap.cachingtier.OffHeapCachingTier.remove(OffHeapCachingTier.java:117)[:]
      1 frame
    5. Ehcache
      Cache.put
      1. net.sf.ehcache.store.CacheStore.put(CacheStore.java:138)[:]
      2. net.sf.ehcache.Cache.putInternal(Cache.java:1500)[:]
      3. net.sf.ehcache.Cache.put(Cache.java:1426)[:]
      4. net.sf.ehcache.Cache.put(Cache.java:1391)[:]
      4 frames