This is very odd - if you have a sessionId cookie, this logic should work perfectly well. It appears that something is interfering with the DefaultWebSessionManager's ability to acquire a session ID, but I can't tell what triggers this state by a stack trace alone.
Do you have a test that can re-create the issue so I can troubleshoot? Les On Thu, Mar 14, 2013 at 9:06 PM, NabbleSometimesSucks <[email protected]> wrote: > I see this a number of times when I am testing. I shut down my server and > restart it after making some coding changes then when my web app redeploys > and the browser shows up I see. > > javax.servlet.ServletException: Filtered request failed. > > org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:384) > > org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) > > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) > > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) > root cause > > java.lang.IllegalArgumentException: The > org.apache.shiro.session.mgt.DelegatingSession implementation requires that > the SessionKey argument returns a non-null sessionId to support the > Session.getId() invocations. > > org.apache.shiro.session.mgt.DelegatingSession.<init>(DelegatingSession.java:70) > > org.apache.shiro.web.session.mgt.DefaultWebSessionManager.createExposedSession(DefaultWebSessionManager.java:166) > > org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:98) > > org.apache.shiro.mgt.SessionsSecurityManager.getSession(SessionsSecurityManager.java:125) > > org.apache.shiro.mgt.DefaultSecurityManager.resolveContextSession(DefaultSecurityManager.java:456) > > org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:442) > > org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:338) > > org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:846) > > org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148) > > org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292) > > org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359) > > org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) > > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) > > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) > > Not sure why. But the only fix is to go into browser developer and clear out > the cookies. That is fine for me as the developer, but not for actual users > when we go to production. So I need to figure out what causes this and fix > it. > > Thanks > > Mark > > > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/SesionID-is-null-exception-tp7578406.html > Sent from the Shiro User mailing list archive at Nabble.com.
