shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduard Neuwirt <eduard.neuw...@googlemail.com>
Subject currentUser.logout problem
Date Fri, 15 Apr 2011 19:56:25 GMT
Hello,

I wrote very simple vaadin application, which consists of simple Login 
and Logout buttons.
Login code:
             UsernamePasswordToken token = new 
UsernamePasswordToken("test", "test");
                 token.setRememberMe(true);
                 currentUser.login(token);

Logout code:
                 currentUser.logout();
                 getMainWindow().getApplication().close();


the following error occurs after some login/logouts:

Caused by: java.lang.NullPointerException
     at 
org.apache.catalina.connector.Request.setAttribute(Request.java:1530)
     at 
org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:543)
     at 
javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:239)
     at 
org.apache.shiro.web.mgt.DefaultWebSecurityManager.removeRequestIdentity(DefaultWebSecurityManager.java:189)
     at 
org.apache.shiro.web.mgt.DefaultWebSecurityManager.beforeLogout(DefaultWebSecurityManager.java:181)
     at 
org.apache.shiro.mgt.DefaultSecurityManager.logout(DefaultSecurityManager.java:504)
     at 
org.apache.shiro.subject.support.DelegatingSubject.logout(DelegatingSubject.java:323)

Any idea ?

Mime
View raw message