org.apache.shiro.session.UnknownSessionException: There is no session
来源:互联网 发布:js点击事件的window 编辑:程序博客网 时间:2024/06/06 01:28
java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [d64a3edc-0860-479d-94a4-09670c2369ba]org.apache.shiro.web.servlet.ShiroHttpSession.getAttribute(ShiroHttpSession.java:133)org.springframework.web.util.WebUtils.getSessionAttribute(WebUtils.java:303)org.springframework.web.servlet.i18n.SessionLocaleResolver.resolveLocale(SessionLocaleResolver.java:84)org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1253)org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)<!-- <bean id="sessionManager" class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager"> --><!-- 设置session过期时间为1小时(单位:毫秒),默认为30分钟 --><!-- <property name="globalSessionTimeout" value="3600000"></property> --><!-- <property name="sessionValidationSchedulerEnabled" value="true"></property> --><!-- </bean> -->sessionManager与国际化的处理不当导致的bug
<!-- 国际化配置 -->
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames" value="i18n.messages" />
<property name="useCodeAsDefaultMessage" value="true" />
</bean>
<bean id="localeResolver"
class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
<property name="defaultLocale" value="zh_CN"/>
</bean>
问题解决方式:
<bean id="shiroEhcacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager"><property name="cacheManagerConfigFile" value="classpath:ehcache.xml"/></bean>
0 0
- org.apache.shiro.session.UnknownSessionException: There is no session
- org.apache.shiro.session.UnknownSessionException: There is no session with id[xx]
- 解决org.apache.shiro.session.UnknownSessionException: There is no session with id的问题(转)
- shiro学习随笔【四】session过期报 org.apache.shiro.session.UnknownSessionException: There is no session with id
- Shiro关于JSESSIONID失效报错问题,org.apache.shiro.session.UnknownSessionException: There is no session with i
- 执行Shiro logout后,报如下错误: org.apache.shiro.session.UnknownSessionException: There is no session with id
- ssm+shiro 在点击退出登录执行logout后报错:org.apache.shiro.session.UnknownSessionException: There is no session w
- shrio报错"org.apache.shiro.session.UnknownSessionException: There is no session with id [e239e76d-012d
- Shiro 不走鉴权方法并且,There is no session with id
- Shiro 手动 close session There is no session with id [XXX]
- nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for propert
- nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for propert
- mybatis映射异常:nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xxx' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'userIds' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property
- 急求一个python小游戏实例
- 实训5/6 Python 函数、lambda、map……
- [李景山php] 坑爹的php list 函数实现
- 处理器体系结构·四
- 安卓遇到 Do you want to schedule the following file for addition to Subversion? 解决办法
- org.apache.shiro.session.UnknownSessionException: There is no session
- bzoj 3529 [Sdoi2014]数表
- 安卓学习笔记---对List集合进行排序(正序或者倒叙)
- 美人薄幸二首
- elasticsearch api中的Bulk API操作
- 新浪微博网站接入开发(渣浪的api写的骗人,不用urlencoding!!!!!!)
- 利用spring-test+junit进行单元测试
- 2017年,开发App你需要知道的那些事
- 大家好才是真的好