NutzCN Logo
问答 net.sf.ehcache.CacheException: java.io.OptionalDataException
发布于 2633天前 作者 liumaobudao 6920 次浏览 复制 上一个帖子 下一个帖子
标签:

type Exception report message Filtered request failed. description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filtered request failed. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:384) org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) root cause org.apache.shiro.cache.CacheException: net.sf.ehcache.CacheException: java.io.OptionalDataException org.apache.shiro.cache.ehcache.EhCache.get(EhCache.java:85) org.apache.shiro.session.mgt.eis.CachingSessionDAO.getCachedSession(CachingSessionDAO.java:217) org.apache.shiro.session.mgt.eis.CachingSessionDAO.getCachedSession(CachingSessionDAO.java:202) org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:259) org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236) org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222) org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118) org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:108) org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:100) org.apache.shiro.mgt.SessionsSecurityManager.getSession(SessionsSecurityManager.java:125) org.apache.shiro.mgt.DefaultSecurityManager.resolveContextSession(DefaultSecurityManager.java:456) org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:442) org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:338) org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:846) org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148) org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292) org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359) org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) root cause net.sf.ehcache.CacheException: java.io.OptionalDataException net.sf.ehcache.store.disk.DiskStorageFactory.retrieve(DiskStorageFactory.java:891) net.sf.ehcache.store.disk.Segment.decodeHit(Segment.java:182) net.sf.ehcache.store.disk.Segment.get(Segment.java:225) net.sf.ehcache.store.disk.DiskStore.fault(DiskStore.java:210) net.sf.ehcache.store.CacheStore$4.call(CacheStore.java:198) net.sf.ehcache.store.CacheStore$4.call(CacheStore.java:192) net.sf.ehcache.store.cachingtier.OnHeapCachingTier$Fault.get(OnHeapCachingTier.java:334) net.sf.ehcache.store.cachingtier.OnHeapCachingTier$Fault.access$200(OnHeapCachingTier.java:311) net.sf.ehcache.store.cachingtier.OnHeapCachingTier.get(OnHeapCachingTier.java:175)
4 回复

不正常关机了? 把ehcache的缓存目录清空

使用 ueditor 上传附件文件的 时候 出现的错误, 文件上传失败,然后就这样了

还有 一个问题就是 使用idea 新版本(2017.2)启动项目 直接报错 启动不了 然后换低版本(2016.2) 就可正常启动项目。。。

据说2017.2.1有严重的bug, 换更新的版本或者老版本都正常使用.

添加回复
请先登陆
回到顶部