java.io.OptionalDataException: This exception has no message.

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

Solutions on the web

java.io.OptionalDataException:
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at java.util.HashMap.readObject(HashMap.java:1029)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at net.sf.ehcache.SerializationModeElementData.create(SerializationModeElementData.java:28)
at org.terracotta.modules.ehcache.store.ElementSerializationStrategy.deserialize(ElementSerializationStrategy.java:68)
at org.terracotta.modules.ehcache.store.ElementSerializationStrategy.deserialize(ElementSerializationStrategy.java:29)
at org.terracotta.modules.ehcache.store.ElementSerializationStrategy.deserialize(ElementSerializationStrategy.java:19)
at org.terracotta.cache.serialization.SerializedEntry.getDeserializedValue(SerializedEntry.java:176)
at org.terracotta.cache.serialization.SerializedEntry.getDeserializedValue(SerializedEntry.java:156)
at org.terracotta.modules.ehcache.store.ValueModeHandlerSerialization.createElement(ValueModeHandlerSerialization.java:119)
at org.terracotta.modules.ehcache.store.ValueModeHandlerHibernate.createElement(ValueModeHandlerHibernate.java:8)
at org.terracotta.modules.ehcache.store.ValueModeHandlerSerialization.createElement(ValueModeHandlerSerialization.java:95)
at org.terracotta.modules.ehcache.store.ValueModeHandlerHibernate.createElement(ValueModeHandlerHibernate.java:8)
at org.terracotta.modules.ehcache.store.backend.NonStrictBackend.get(NonStrictBackend.java:184)
at org.terracotta.modules.ehcache.store.ClusteredStore.doGet(ClusteredStore.java:421)
at org.terracotta.modules.ehcache.store.ClusteredStore.get(ClusteredStore.java:407)
at org.terracotta.modules.ehcache.store.ClusteredSafeStore.get(ClusteredSafeStore.java:682)
at net.sf.ehcache.Cache.searchInStoreWithoutStats(Cache.java:2072)
at net.sf.ehcache.Cache.get(Cache.java:1590)
at net.sf.ehcache.Cache.get(Cache.java:1557)
at grails.plugin.ehcachesession.EhCachePersisterManager.getSession(EhCachePersisterManager.groovy:88)
at grails.plugin.ehcachesession.EhCachePersisterService.isValid(EhCachePersisterService.groovy:156)
at grails.plugin.ehcachesession.SessionProxyFilter.proxySession(SessionProxyFilter.java:90)
at grails.plugin.ehcachesession.SessionProxyFilter$1.getSession(SessionProxyFilter.java:47)
at org.apache.shiro.web.servlet.ShiroHttpServletRequest.getSession(ShiroHttpServletRequest.java:141)
at grails.plugin.ehcachesession.SessionFilters$_closure1_closure2_closure3.doCall(SessionFilters.groovy:25)
at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:344)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
at com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67)
at grails.plugin.ehcachesession.SessionProxyFilter.doFilterInternal(SessionProxyFilter.java:60)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

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