DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21091>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21091

RequestUtils.getModulePrefixes needs synchronization





------- Additional Comments From [EMAIL PROTECTED]  2003-06-25 20:08 -------
The sync problem is not inside the loop but when one thread modifies


context attributes while another one is reading them. I.e., 


if thread 1 and thread 2 are past context.getAttributeNames()


AND


thread 1 does the context.setAttribute 


AND 


then thread 2 does the names.nextElement(), 


you will get a ConcurrentModificationException. 


You can reproduce this with a simple test prg.


BTW, a work around is to call this method once in the servlet init()


nmethod.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to