NutzCN Logo
问答 nutzwk访问首页报错
发布于 1874天前 作者 qq_4ad560c4 1242 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
HTTP Status 500 – Internal Server Error
Type Exception Report

Message Filtered request failed.

Description The server encountered an unexpected condition that prevented it from fulfilling the 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: java.lang.ClassCastException: cannot assign instance of java.lang.Long to field cn.wizzer.framework.base.model.BaseModel.opAt of type java.lang.Integer in instance of cn.wizzer.app.sys.modules.models.Sys_user
	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

java.lang.ClassCastException: cannot assign instance of java.lang.Long to field cn.wizzer.framework.base.model.BaseModel.opAt of type java.lang.Integer in instance of cn.wizzer.app.sys.modules.models.Sys_user
	java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2287)
	java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1417)
	java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2293)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
	java.util.HashSet.readObject(HashSet.java:341)
	sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
	java.util.HashMap.readObject(HashMap.java:1409)
	sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
	java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
	org.apache.shiro.subject.SimplePrincipalCollection.readObject(SimplePrincipalCollection.java:295)
	sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
	java.util.HashMap.readObject(HashMap.java:1409)
	sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
	org.apache.shiro.session.mgt.SimpleSession.readObject(SimpleSession.java:500)
	sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
	java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
	net.sf.ehcache.Element.readObject(Element.java:884)
	sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
	java.lang.reflect.Method.invoke(Method.java:498)
	java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
	java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
	java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
	java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
	java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
	net.sf.ehcache.store.disk.DiskStorageFactory.read(DiskStorageFactory.java:371)
	net.sf.ehcache.store.disk.DiskStorageFactory.retrieve(DiskStorageFactory.java:887)
	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)
	net.sf.ehcache.store.CacheStore.get(CacheStore.java:192)
	net.sf.ehcache.Cache.get(Cache.java:1751)
	org.apache.shiro.cache.ehcache.EhCache.get(EhCache.java:73)
	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)
Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/8.0.53
4 回复

改了类属性?

没有啊,服务器上就没问题

session缓存清空一下

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