tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51306] NPE in DeltaRequest.writeExternal( when handling remote session expiration
Date Mon, 13 Jun 2011 08:57:57 GMT

--- Comment #4 from Keiichi Fujino <> 2011-06-13 08:57:57 UTC ---
There seem to be two problems in this stack trace.

The first problem is  DeltaRequest#getSize() > 1 in non-primary node . 
Usually, DeltaRequest#getSize() must be 0 in non-primary node. and, r818062
works correctly. 
However, r818062 doesn't work correctly because DeltaRequest#getSize() is more
than 1 in this case. 
This is a potential bug. 

The second problem is  DeltaRequest#sessionId() is null in non-primary node .
When handleSESSION_CREATED is completed, DeltaRequest#sessionId is always
When setMaxInactiveInterval is called in handleSESSION_CREATED, the action is
added to DeltaRequest. 
As a result, it becomes DeltaRequest#getSize() >1. 
This is probably bug.
For instance, when handleSESSION_EXPIRED is processed while processing
sessionId of DeltaRequest will become null and DeltaRequest#getSize() > 1. 
And, NPE will be thrown out. 

The workaround is..
Correct these bugs or Synchronize between handleSESSION_CREATED and

I will correct not to add action to DeltaRequest when setMaxInactiveInterval is
called in handleSESSION_CREATED. 
Additionally, I will correct the potential bug of r818062.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message