Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-150

RememberMeManager NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • Web
    • None

    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

          Activity

            People

              lhazlewood Les Hazlewood
              ryantxu Ryan McKinley
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: