NutzCN Logo
问答 There is no session with id,前端页面报错,后台不报错
发布于 104天前 作者 qq_0d17d15e 160 次浏览 复制 上一个帖子 下一个帖子
标签:

前端页面报错,后端没有报错,

HTTP Status 500 - java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [688b4771-d838-47e6-8c8d-25064c7ab9ce]

 try {
            System.err.println("----------准备退出------------------");
            Subject subject = new Subject.Builder().sessionId(sessionId).buildSubject();
            subject.logout();
            System.err.println("----------执行了退出2------------------");
        } catch (Exception e) {
            e.printStackTrace();
        }
2 回复
HTTP Status 500 - java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [58036e38-8d77-42c8-a252-69ad408d1be5]
type Exception report

message java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [58036e38-8d77-42c8-a252-69ad408d1be5]

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [58036e38-8d77-42c8-a252-69ad408d1be5]
	org.apache.shiro.web.servlet.AdviceFilter.cleanup(AdviceFilter.java:196)
	org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:148)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
root cause

java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [58036e38-8d77-42c8-a252-69ad408d1be5]
	org.apache.shiro.web.servlet.ShiroHttpSession.setAttribute(ShiroHttpSession.java:210)
	cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:77)
	cn.wizzer.app.web.commons.filter.LogoutFilter.doFilter(LogoutFilter.java:44)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
root cause

org.apache.shiro.session.UnknownSessionException: There is no session with id [58036e38-8d77-42c8-a252-69ad408d1be5]
	org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)
	org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)
	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.lookupRequiredSession(AbstractNativeSessionManager.java:112)
	org.apache.shiro.session.mgt.AbstractNativeSessionManager.setAttribute(AbstractNativeSessionManager.java:216)
	org.apache.shiro.session.mgt.DelegatingSession.setAttribute(DelegatingSession.java:151)
	org.apache.shiro.session.ProxiedSession.setAttribute(ProxiedSession.java:128)
	org.apache.shiro.web.servlet.ShiroHttpSession.setAttribute(ShiroHttpSession.java:202)
	cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:77)
	cn.wizzer.app.web.commons.filter.LogoutFilter.doFilter(LogoutFilter.java:44)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.44 logs.

找到问题了,

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