com.tc.object.dna.api.DNAException

java.lang.ClassCastException: com.tc.object. ObjectID

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web3

  • via Terracotta by simong01, 11 months ago
    java.lang.ClassCastException: com.tc.object. ObjectID
  • via Terracotta by hardy, 11 months ago
    java.lang.ClassCastException: org.apache.lucene.store.SingleInstanceLockFactory
  • via Terracotta by nbreau, 11 months ago
    java.lang.ClassCastException: com.s6.sphere.common.pojos.Orange
  • Stack trace

    • com.tc.object.dna.api.DNAException: java.lang.ClassCastException: com.tc.object. ObjectID at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:107) at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:501) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:402) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:395) at com.tc.object.TCObjectPhysical.resolveReference(TCObjectPhysical.java:103) at net.sf.ehcache.store.MemoryStore.__tc_getmap(MemoryStore.java) at net.sf.ehcache.store.MemoryStore.__tc_wrapped_getKeyArray(MemoryStore.java:282) at net.sf.ehcache.store.MemoryStore.getKeyArray(MemoryStore.java) at net.sf.ehcache.Cache.__tc_wrapped_getKeys(Cache.java:731) at net.sf.ehcache.Cache.getKeys(Cache.java) at demo.jtable.DemoEHCache.showCache(DemoEHCache.java:54) at demo.jtable.DemoEHCache.askForUserInput(DemoEHCache.java:80) at demo.jtable.DemoEHCache.main(DemoEHCache.java:89) Caused by: java.lang.ClassCastException: com.tc.object.ObjectID at net.sf.ehcache.store.LruMemoryStore$SpoolingLinkedHashMap.removeEldestEntry(LruMemoryStore.java:188) at java.util.LinkedHashMap.addEntry(Unknown Source) at java.util.HashMap.__tc_put(Unknown Source) at java.util.HashMap.__tc_applicator_put(Unknown Source) at com.tc.object.applicator.HashMapApplicator.apply(HashMapApplicator.java:102) at com.tc.object.applicator.LinkedHashMapApplicator.apply(LinkedHashMapApplicator.java:74) at com.tc.object.applicator.LinkedHashMapApplicator.hydrate(LinkedHashMapApplicator.java:55) at com.tc.object.TCClassImpl.hydrate(TCClassImpl.java:152) at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:103) ... 12 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

    You’re the first here who have seen this exception.