-
1. Re: Wildfly 10 CR4: NPE on session.invalidate()
jamat Dec 4, 2015 4:39 PM (in response to jamat)The last change in core/src/main/java/io/undertow/server/session/InMemorySessionManager.java getSession() is probably the problem.
Before we had:
String sessionId = config.findSessionId(serverExchange);
return getSession(sessionId);
Now this was added:
SessionImpl newSession = serverExchange.getAttachment(NEW_SESSION);
if(newSession != null) {
return newSession;
}
and obviously if serverExchange is null, as this is the case here, we have this NPE.
-
2. Re: Wildfly 10 CR4: NPE on session.invalidate()
jamat Jan 22, 2016 3:12 PM (in response to jamat)I have tried again with wildfly 10.0.0.CR5 and the problem is still there.
Note that the problem happens if the webapp uses the InMemorySessionManager, that is, if the web.xml does not contain the <distribuable/> tag.
Marking all the webapps 'distributable' to avoid the problem will most likely have a performance impact.
-
3. Re: Wildfly 10 CR4: NPE on session.invalidate()
pferraro Jan 28, 2016 9:17 PM (in response to jamat)This is fixed by: UNDERTOW-603 NPE during invalidation of session associated with SSO · undertow-io/undertow@c2775d6 · GitHub
and will be fixed in WF 10.0.0.Final.