net.sf.ehcache.CacheException: The key java.lang.Object@45d6a56e is not Serializable. Consider using Element.getObjectKey()

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Terracotta Project Issue Tracker by Jeferson Estevo, 1 year ago
The key java.lang.Object@45d6a56e is not Serializable. Consider using Element.getObjectKey()
via Terracotta Project Issue Tracker by Jeferson Estevo, 1 year ago
The key java.lang.Object@45d6a56e is not Serializable. Consider using Element.getObjectKey()
net.sf.ehcache.CacheException: The key java.lang.Object@45d6a56e is not Serializable. Consider using Element.getObjectKey()
at net.sf.ehcache.Element.getKey(Element.java:256)
at net.sf.ehcache.store.MemoryStore.evict(MemoryStore.java:853)
at net.sf.ehcache.store.NotifyingMemoryStore.evict(NotifyingMemoryStore.java:60)
at net.sf.ehcache.store.MemoryStore.removeElementChosenByEvictionPolicy(MemoryStore.java:596)
at net.sf.ehcache.store.MemoryStore.checkCapacity(MemoryStore.java:562)
at net.sf.ehcache.store.MemoryStore.put(MemoryStore.java:262)
at net.sf.ehcache.store.FrontEndCacheTier.put(FrontEndCacheTier.java:267)
at net.sf.ehcache.Cache.putInternal(Cache.java:1455)
at net.sf.ehcache.Cache.put(Cache.java:1383)
at net.sf.ehcache.Cache.put(Cache.java:1348)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.