Description
When clicking the 'logout' button in wicket-shiro, I see this error:
WARN - DefaultSecurityManager - Delegate RememberMeManager
instance of type [org.apache.shiro.web.WebRememberMeManager] threw an
exception during getRememberedPrincipals().
java.lang.NullPointerException
at org.apache.shiro.web.attr.CookieAttribute.getCookie(CookieAttribute.java:262)
at org.apache.shiro.web.attr.CookieAttribute.removeValue(CookieAttribute.java:357)
at org.apache.shiro.web.WebRememberMeManager.forgetIdentity(WebRememberMeManager.java:320)
at org.apache.shiro.web.WebRememberMeManager.forgetIdentity(WebRememberMeManager.java:316)
at org.apache.shiro.mgt.AbstractRememberMeManager.onRememberedPrincipalFailure(AbstractRememberMeManager.java:547)
at org.apache.shiro.mgt.AbstractRememberMeManager.getRememberedPrincipals(AbstractRememberMeManager.java:488)
at org.apache.shiro.mgt.DefaultSecurityManager.getRememberedIdentity(DefaultSecurityManager.java:610)
at org.apache.shiro.mgt.DefaultSecurityManager.resolvePrincipals(DefaultSecurityManager.java:486)
at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:363)
at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:197)
at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:315)
at org.apache.shiro.subject.DelegatingSubject.login(DelegatingSubject.java:249)
at voyager.security.wicket.component.LoginPanel.login(LoginPanel.java:189)
at voyager.security.wicket.component.LoginPanel$2.onSubmit(LoginPanel.java:83)
at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1538)
at org.apache.wicket.markup.html.form.Form.process(Form.java:934)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Attachments
Issue Links
- duplicates
-
SHIRO-141 Problem with WebRememberMeManager
- Closed