[logback-dev] [JIRA] Created: (LBCLASSIC-318) ConcurrentModificationException when LoggerContext.reset

Szczepan Faber (JIRA) noreply-jira at qos.ch
Tue Jan 10 16:19:26 CET 2012

ConcurrentModificationException when LoggerContext.reset 

                 Key: LBCLASSIC-318
                 URL: http://jira.qos.ch/browse/LBCLASSIC-318
             Project: logback-classic
          Issue Type: Bug
    Affects Versions: 1.0.0
            Reporter: Szczepan Faber
            Assignee: Logback dev list

Not sure if it's a bug. Should we expect this to be thread safe:

//should below work in concurrent scenario?
  LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
  //configure the context somehow 

I'm facing this issue from time to time:

Caused by: java.util.ConcurrentModificationException
    at ch.qos.logback.classic.Logger.recursiveReset(Logger.java:372)
    at ch.qos.logback.classic.LoggerContext.reset(LoggerContext.java:223)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list