I have seen this same problem and I am running 1.8.
The only synchronized I saw was on the test element.  The problem seems to
be the HashTree which is a HashMap.  This is a major problem when there are
multiple threads.  If a thread should get this error then the thread is
done.  Then the test will not be correct.  I tried a few things.   I tried
synchronizing on the HashTree in TestCompiler, but that didn't work.  I
then went to 'public void traverse(HashTreeTraverser visitor)' in HashTree.
I tried synchronizing on list() and visitor that didn't work.  Then I
created a static object and synchronized the object and that has been
working.  Since I don't have full understanding of the program, my guess
there is a better place.  If anybody has another suggestion, let me know
and I will give it a try.

Chris



                                                                                       
                          
                    "Mike Stover"                                                      
                          
                    <mstover1@apac       To:     JMeter Developers List 
<[EMAIL PROTECTED]>          
                    he.org>              cc:                                           
                          
                                         Subject:     Re: 
ConcurrentModificationException                        
                    12/17/02 12:13                                                     
                          
                    PM                                                                 
                          
                    Please respond                                                     
                          
                    to "JMeter                                                         
                          
                    Developers                                                         
                          
                    List"                                                              
                          
                                                                                       
                          
                                                                                       
                          




This error makes me think you aren't running the latest 1.8 code.  the code
from your
stacktrace is under a synchronization lock, and this should not be
happening.  More
information about exactly how you did this and your environment would be
needed.  Some log
statements from this area of the application would help too.

-Mike

On 16 Dec 2002 at 21:26, Scott Eade wrote:

> I am running cvs head with a few minor patches (to LoopController,
> LoopControlPanel and the resource files) on win2k using jdk1.4.0_01.
> Sometimes JMeter encounters a ConcurrentModificationException thus:
>
> C:\j2sdk1.4.0_01\bin\javaw.exe -classpath
> D:\jakarta-jmeter\build\protocol\java;D:
\jakarta-jmeter\build\functions;D:\j
> akarta-jmeter\build\jorphan;D:\jakarta-jmeter\build\components;D:
\jakarta-jm
> eter\build\protocol\ftp;D:\jakarta-jmeter\build\protocol\http;D:
\jakarta-jme
> ter\build\protocol\jdbc;D:\jakarta-jmeter\build\core;D:
\jakarta-jmeter\lib\a
> nt-1.5-optional.jar;D:\jakarta-jmeter\lib\ant-1.5.jar;D:
\jakarta-jmeter\lib\
> avalon-excalibur-4.1.jar;D:\jakarta-jmeter\lib\avalon-framework.jar;D:
\jakar
> ta-jmeter\lib\jakarta-oro-2.0.1.jar;D:\jakarta-jmeter\lib\jorphan.jar;D:
\jak
> arta-jmeter\lib\junit.jar;D:\jakarta-jmeter\lib\logkit-1.0.1.jar;D:
\jakarta-
> jmeter\lib\Tidy.jar;D:\jakarta-jmeter\lib\util.jar;D:
\jakarta-jmeter\lib\xal
> an.jar;D:\jakarta-jmeter\lib\xerces.jar;D:
\jakarta-jmeter\lib\xml-apis.jar;C
> :\j2sdk1.4.0_01\jre\lib\rt.jar;C:\j2sdk1.4.0_01\jre\lib\ext\dnsns.jar;C:
\j2s
> dk1.4.0_01\jre\lib\ext\ldapsec.jar;C:
\j2sdk1.4.0_01\jre\lib\ext\localedata.j
> ar;C:\j2sdk1.4.0_01\jre\lib\ext\sunjce_provider.jar
> org.apache.jmeter.NewDriver
> java.util.ConcurrentModificationException
>     at java.util.HashMap$HashIterator.nextEntry(HashMap.java:750)
>     at java.util.HashMap$KeyIterator.next(HashMap.java:786)
>     at
>
org.apache.jmeter.threads.TestCompiler.hasFunctions(TestCompiler.java:498)
>     at
>
org.apache.jmeter.threads.TestCompiler.saveSamplerConfigs(TestCompiler.java:

> 196)
>     at
>
org.apache.jmeter.threads.TestCompiler.subtractNode(TestCompiler.java:158)
>     at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:908)
>     at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:902)
>     at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:902)
>     at
> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:902)
>     at
org.apache.jorphan.collections.HashTree.traverse(HashTree.java:886)
>     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:125)
>     at java.lang.Thread.run(Thread.java:536)
>
> My Thread Group is currently configured to have only 1 thread, but 2
loops.
> I have three listeners in my Test Plan, View Results Tree, Graph Results
and
> Aggregate Report.  I do have quite a large number of HTTP Requests in my
jmx
> file - it is currently 792KB.
>
> I would hazard to guess that this is the exact same thing as in this
message
> from the archive:
>
http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]

> ache.org&msgId=515387
>
> Does anyone have an idea of what I might do to resolve this problem?
>
> Thanks,
>
> Scott
> --
> Scott Eade
> Backstage Technologies Pty. Ltd.
> http://www.backstagetech.com.au
> .Mac Chat/AIM: seade at mac dot com
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>



--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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





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

Reply via email to