John, I finally got around to addressing this issue. I applied the fix you suggested and 50 concurrent threads now appear to run without a glitch.
Thanks again for tracking this problem down. - Dmitri --- Guanqun Zhang <[EMAIL PROTECTED]> wrote: > Dear all, > > I am new to this maillist, if my question is > stale, please forgive me. :-) > > I am using JXPath 1.1, and it has a little better > performance than Xalan. But during the stress test, > occasionally there are some exceptions. Here is the > exception stacktrace: > ava.util.ConcurrentModificationException > at > java.util.HashMap$HashIterator.next(HashMap.java(Compiled > Code)) > at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.cleanupCache(JXPathContextReferenceImpl.java(Compiled > Code)) > at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.compileExpression(JXPathContextReferenceImpl.java(Compiled > Code)) > at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java(Compiled > Code)) > It seems that it is because the HashMap is not thread > safe. > > Have someone faced similar problems? I cannot find any > information neither in goole nor in this mail list. > Could you please give me some suggestion? > > Thanks! > > John > > > _________________________________________________________ > Do You Yahoo!? > ��Ů�ǵ����������� > http://yahoo.eachnet.com/fu/co/rd.php?http://pages.eachnet.com/st/page/women/women.htm > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
