https://issues.apache.org/bugzilla/show_bug.cgi?id=51306

--- Comment #4 from Keiichi Fujino <kfuj...@apache.org> 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
non-null. 
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
handleSESSION_CREATED, 
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
handleSESSION_EXPIRED.

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to