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

            Bug ID: 56082
           Summary: ConcurrentModificationException with
                    org.apache.juli.ClassLoaderLogManager
           Product: Tomcat 7
           Version: 7.0.42
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: ever...@free.fr

Created attachment 31267
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31267&action=edit
Source to reproduce

In Tomcat, java.util.logging.LogManager.getLogManager() is in general an
instance of org.apache.juli.ClassLoaderLogManager.

In a webapp, when iterating over the result of
LogManager.getLogManager().getLoggerNames(), a ConcurrentModification can
sometimes occur.

To reproduce :
- download attached test-1.0.zip
- run "mvn clean package" using Maven
- copy "target/test-1.0.war" into tomcat/webapps
- start Tomcat
- see a lot of "Issue reproduced: java.util.ConcurrentModificationException" in
the System output

This webapp uses simple Logger.getLogger(String) and
LogManager.getLoggerNames() in threads.
I my case, this is reproduced using Tomcat 7.0.42 and JDK 1.7. 

I suppose that a copy of the result could be made in
org.apache.juli.ClassLoaderLogManager.getLoggerNames()

-- 
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