java.lang.UnsupportedOperationException: ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element

Terracotta Project Issue Tracker | Himadri Singh | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    While running ohsm test with tc clustered ehcache 1.7.1-SNAPSHOT got following exception. java.lang.UnsupportedOperationException: ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element at net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:58) at net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:13) at org.terracotta.cache.value.AbstractStatelessTimestampedValue.hashCode(AbstractStatelessTimestampedValue.java:153) at org.terracotta.cache.evictor.TargetCapacityEvictor$DetachedEntry.hashCode(TargetCapacityEvictor.java:280) at java.util.HashMap.__tc_put(Unknown Source) at java.util.HashMap.put(Unknown Source) at java.util.HashSet.__tc_add(HashSet.java:200) at java.util.HashSet.add(HashSet.java) at org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElement(TargetCapacityEvictor.java:111) at org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElements(TargetCapacityEvictor.java:65) at org.terracotta.cache.evictor.TargetCapacityMapSizeListener.localSizeChanged(TargetCapacityMapSizeListener.java:55) at org.terracotta.collections.ConcurrentDistributedMapDso.localSizeIncrement(ConcurrentDistributedMapDso.java:1206) at org.terracotta.collections.ConcurrentDistributedMapDso.putNoReturn(ConcurrentDistributedMapDso.java:280) at org.terracotta.collections.ConcurrentDistributedMapDsoArray.putNoReturn(ConcurrentDistributedMapDsoArray.java:117) at org.terracotta.collections.ConcurrentDistributedMap.putNoReturn(ConcurrentDistributedMap.java:189) at org.terracotta.cache.impl.DistributedCacheImpl.putNoReturn(DistributedCacheImpl.java:363) at org.terracotta.modules.ehcache.store.ClusteredStore.put(ClusteredStore.java:96) at net.sf.ehcache.Cache.put(Cache.java:876) at net.sf.ehcache.Cache.put(Cache.java:811) : : : at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.lang.UnsupportedOperationException: ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element
  2. 0

    While running ohsm test with tc clustered ehcache 1.7.1-SNAPSHOT got following exception. java.lang.UnsupportedOperationException: ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element at net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:58) at net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:13) at org.terracotta.cache.value.AbstractStatelessTimestampedValue.hashCode(AbstractStatelessTimestampedValue.java:153) at org.terracotta.cache.evictor.TargetCapacityEvictor$DetachedEntry.hashCode(TargetCapacityEvictor.java:280) at java.util.HashMap.__tc_put(Unknown Source) at java.util.HashMap.put(Unknown Source) at java.util.HashSet.__tc_add(HashSet.java:200) at java.util.HashSet.add(HashSet.java) at org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElement(TargetCapacityEvictor.java:111) at org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElements(TargetCapacityEvictor.java:65) at org.terracotta.cache.evictor.TargetCapacityMapSizeListener.localSizeChanged(TargetCapacityMapSizeListener.java:55) at org.terracotta.collections.ConcurrentDistributedMapDso.localSizeIncrement(ConcurrentDistributedMapDso.java:1206) at org.terracotta.collections.ConcurrentDistributedMapDso.putNoReturn(ConcurrentDistributedMapDso.java:280) at org.terracotta.collections.ConcurrentDistributedMapDsoArray.putNoReturn(ConcurrentDistributedMapDsoArray.java:117) at org.terracotta.collections.ConcurrentDistributedMap.putNoReturn(ConcurrentDistributedMap.java:189) at org.terracotta.cache.impl.DistributedCacheImpl.putNoReturn(DistributedCacheImpl.java:363) at org.terracotta.modules.ehcache.store.ClusteredStore.put(ClusteredStore.java:96) at net.sf.ehcache.Cache.put(Cache.java:876) at net.sf.ehcache.Cache.put(Cache.java:811) : : : at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.lang.UnsupportedOperationException: ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      ElementData represents the Element, but w/o the key. To get to the element, call createElement(Object): Element

      at net.sf.ehcache.AbstractElementData.getValue()
    2. Ehcache
      AbstractElementData.getValue
      1. net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:58)
      2. net.sf.ehcache.AbstractElementData.getValue(AbstractElementData.java:13)
      2 frames
    3. org.terracotta.cache
      TargetCapacityEvictor$DetachedEntry.hashCode
      1. org.terracotta.cache.value.AbstractStatelessTimestampedValue.hashCode(AbstractStatelessTimestampedValue.java:153)
      2. org.terracotta.cache.evictor.TargetCapacityEvictor$DetachedEntry.hashCode(TargetCapacityEvictor.java:280)
      2 frames
    4. Java RT
      HashSet.add
      1. java.util.HashMap.__tc_put(Unknown Source)
      2. java.util.HashMap.put(Unknown Source)
      3. java.util.HashSet.__tc_add(HashSet.java:200)
      4. java.util.HashSet.add(HashSet.java)
      4 frames
    5. org.terracotta.cache
      TargetCapacityMapSizeListener.localSizeChanged
      1. org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElement(TargetCapacityEvictor.java:111)
      2. org.terracotta.cache.evictor.TargetCapacityEvictor.evictLocalElements(TargetCapacityEvictor.java:65)
      3. org.terracotta.cache.evictor.TargetCapacityMapSizeListener.localSizeChanged(TargetCapacityMapSizeListener.java:55)
      3 frames
    6. org.terracotta.collections
      ConcurrentDistributedMap.putNoReturn
      1. org.terracotta.collections.ConcurrentDistributedMapDso.localSizeIncrement(ConcurrentDistributedMapDso.java:1206)
      2. org.terracotta.collections.ConcurrentDistributedMapDso.putNoReturn(ConcurrentDistributedMapDso.java:280)
      3. org.terracotta.collections.ConcurrentDistributedMapDsoArray.putNoReturn(ConcurrentDistributedMapDsoArray.java:117)
      4. org.terracotta.collections.ConcurrentDistributedMap.putNoReturn(ConcurrentDistributedMap.java:189)
      4 frames
    7. org.terracotta.cache
      DistributedCacheImpl.putNoReturn
      1. org.terracotta.cache.impl.DistributedCacheImpl.putNoReturn(DistributedCacheImpl.java:363)
      1 frame
    8. org.terracotta.modules
      ClusteredStore.put
      1. org.terracotta.modules.ehcache.store.ClusteredStore.put(ClusteredStore.java:96)
      1 frame
    9. Ehcache
      Cache.put
      1. net.sf.ehcache.Cache.put(Cache.java:876)
      2. net.sf.ehcache.Cache.put(Cache.java:811)
      2 frames