1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/BYSRepo-shiro-redis

 / Детали:

log out ends up with StackOverflowError

Завершенные
Владелец
Создано  
25.11.2024

VERSION: 2.2.0
Calling SecurityUtils.getSubject().logout()

At RedisSessionDAO.java line 180
the call to getActiveSessionsCacheLazy method ruins everything:

	protected Cache<Serializable, Session> getActiveSessionsCacheLazy() {
		return (Cache<Serializable, Session>) Utils.invokeMethod(this, "getActiveSessionsCacheLazy");
	}

stack:

Caused by: java.lang.StackOverflowError: null
	at java.util.HashMap.afterNodeAccess(HashMap.java:1782)
	at java.util.HashMap.putVal(HashMap.java:657)
	at java.util.HashMap.put(HashMap.java:612)
	at java.util.HashSet.add(HashSet.java:220)
	at java.util.Collections$SynchronizedCollection.add(Collections.java:2037)
	at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:508)
	at org.iherus.shiro.util.Utils.rethrowRuntimeException(Utils.java:889)
	at org.iherus.shiro.util.Utils.handleReflectionException(Utils.java:880)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:867)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:865)
	at org.iherus.shiro.util.Utils.invokeMethod(Utils.java:850)
	at org.iherus.shiro.cache.redis.RedisSessionDAO.getActiveSessionsCacheLazy(RedisSessionDAO.java:188)
	at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

Комментарий (0)

GitLife Service Account Задача создана
GitLife Service Account изменить Статус задачи с Предстоит сделать на Завершенные
Развернуть журнал операций

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/BYSRepo-shiro-redis.git
git@api.gitlife.ru:oschina-mirror/BYSRepo-shiro-redis.git
oschina-mirror
BYSRepo-shiro-redis
BYSRepo-shiro-redis