[logback-dev] [JIRA] Commented: (LBCLASSIC-268) ConcurrentModificationException in LogbackMDCAdapter

Scott Stanton (JIRA) noreply-jira at qos.ch
Tue May 24 01:36:51 CEST 2011


    [ http://jira.qos.ch/browse/LBCLASSIC-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12020#action_12020 ] 

Scott Stanton commented on LBCLASSIC-268:
-----------------------------------------

I think this is the same issue as LBCLASSIC-267.  A fix is to replace the HashMap with a ConcurrentHashMap.  See the attached patch.

> ConcurrentModificationException in LogbackMDCAdapter
> ----------------------------------------------------
>
>                 Key: LBCLASSIC-268
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-268
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: 0.9.28
>         Environment: JRE 1.6.0_25, Windows 7 64-bit
>            Reporter: Scott Stanton
>            Assignee: Logback dev list
>            Priority: Critical
>         Attachments: LBCLASSIC-268.patch
>
>
> I'm seeing ConcurrentModificationException errors like the following:
> {panel}
> 011-05-23T04:53:31.997 | ERROR | Dispatch-001 | | | | OperationCaller | null | java.util.ConcurrentModificationException: null
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) ~[na:1.6.0_21]
> at java.util.HashMap$EntryIterator.next(HashMap.java:834) ~[na:1.6.0_21]
> at java.util.HashMap$EntryIterator.next(HashMap.java:832) ~[na:1.6.0_21]
> at java.util.HashMap.putAll(HashMap.java:523) ~[na:1.6.0_21]
> at ch.qos.logback.classic.util.LogbackMDCAdapter.put(LogbackMDCAdapter.java:76) ~[logback-classic.jar:na]
> at org.slf4j.MDC.put(MDC.java:112) ~[slf4j-api.jar:1.6.1]
> {panel}

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