NutzCN Logo
问答 There is no session with id,是怎么回事,不走session了,每次刷新就回到登录页面
发布于 2714天前 作者 萧仁武 11442 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 16:03:15.838 org.apache.shiro.session.mgt.AbstractValidatingSessionManager.createSessionValidationScheduler(AbstractValidatingSessionManager.java:213) - No sessionValidationScheduler set.  Attempting to create default instance.
[INFO ] 16:03:15.840 org.apache.shiro.session.mgt.AbstractValidatingSessionManager.enableSessionValidation(AbstractValidatingSessionManager.java:233) - Enabling session validation scheduler...
[DEBUG] 16:03:15.841 org.apache.shiro.web.servlet.SimpleCookie.readValue(SimpleCookie.java:389) - Found 'sid' cookie value [vp7jr5dd2ojecpmroj5d78djcr]
[INFO ] 16:03:15.841 org.apache.shiro.cache.ehcache.EhCacheManager.getCache(EhCacheManager.java:170) - Using existing EHCache named [shiro-activeSessionCache]
[DEBUG] 16:03:15.844 org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:447) - Resolved SubjectContext context session is invalid.  Ignoring and creating an anonymous (session-less) Subject instance.
org.apache.shiro.session.UnknownSessionException: There is no session with id [vp7jr5dd2ojecpmroj5d78djcr]
	at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)
	at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)
	at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)
	at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)
	at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)
	at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:148)
	at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:140)
	at org.apache.shiro.mgt.SessionsSecurityManager.getSession(SessionsSecurityManager.java:156)
	at org.apache.shiro.mgt.DefaultSecurityManager.resolveContextSession(DefaultSecurityManager.java:456)
	at org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:442)
	at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:338)
	at org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:846)
	at org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
[DEBUG] 16:03:15.860 org.apache.shiro.session.mgt.DefaultSessionManager.create(DefaultSessionManager.java:175) - Creating new EIS record for new session instance [org.apache.shiro.session.mgt.SimpleSession,id=null]
[DEBUG] 16:03:15.864 net.sf.ehcache.store.disk.Segment.put(Segment.java:434) - put added 0 on heap
[DEBUG] 16:03:15.866 net.sf.ehcache.store.disk.Segment.put(Segment.java:434) - put added 0 on heap
[DEBUG] 16:03:15.866 net.sf.ehcache.store.disk.Segment.put(Segment.java:462) - put updated, deleted 0 on heap
[DEBUG] 16:03:15.867 org.apache.shiro.web.servlet.SimpleCookie.addCookieHeader(SimpleCookie.java:226) - Added HttpServletResponse Cookie [sid=1p55dfn864j10pln0l9ev2nihg; Path=/admin; Max-Age=43200000; Expires=Tue, 30-Oct-2018 08:03:15 GMT; HttpOnly]
[DEBUG] 16:03:15.871 net.sf.ehcache.store.disk.Segment.put(Segment.java:434) - put added 0 on heap
[DEBUG] 16:03:15.871 net.sf.ehcache.store.disk.Segment.put(Segment.java:462) - put updated, deleted 0 on heap
[DEBUG] 16:03:15.872 net.sf.ehcache.store.disk.Segment.faultInternal(Segment.java:764) - fault removed 0 from heap
[DEBUG] 16:03:15.872 net.sf.ehcache.store.disk.Segment.faultInternal(Segment.java:776) - fault added 0 on disk
2 回复

shiro.ini没配好

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