[slf4j-dev] [JIRA] (SLF4J-403) Issue with SubsituteLoggerFactory new to version 1.8.0

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Mar 21 20:55:00 CET 2017


     [ https://jira.qos.ch/browse/SLF4J-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gülcü resolved SLF4J-403.
------------------------------
    Resolution: Fixed

Solved with a ConcurrentHashMap. See [commit45c12f86c|https://github.com/qos-ch/slf4j/commit/45c12f86c84c7b8c9479c275ec17ceed312b1cd1#diff-b83d130292c487622eff8ed3e0c3b3e4]

> Issue with SubsituteLoggerFactory new to version 1.8.0
> ------------------------------------------------------
>
>                 Key: SLF4J-403
>                 URL: https://jira.qos.ch/browse/SLF4J-403
>             Project: SLF4J
>          Issue Type: Sub-task
>          Components: Implementations
>            Reporter: Ceki Gülcü
>            Assignee: SLF4J developers list
>             Fix For: 1.8.0
>
>
> {code}
> java.util.ConcurrentModificationException
> 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
> 	at java.util.HashMap$ValueIterator.next(HashMap.java:922)
> 	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
> 	at java.util.ArrayList.<init>(ArrayList.java:151)
> 	at org.slf4j.helpers.SubstituteLoggerFactory.getLoggers(SubstituteLoggerFactory.java:65)
> 	at org.slf4j.LoggerFactory.fixSubstituteLoggers(LoggerFactory.java:216)
> 	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:154)
> 	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:140)
> 	at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:411)
> 	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:403)
> 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:352)
> 	at org.slf4j.LoggerAccessingThread.run(LoggerAccessingThread.java:55)
> Exception in thread "Thread-20" java.lang.IllegalStateException: Unexpected initialization failure
> 	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:169)
> 	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:140)
> 	at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:411)
> 	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:403)
> 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:352)
> 	at org.slf4j.LoggerAccessingThread.run(LoggerAccessingThread.java:55)
> Caused by: java.util.ConcurrentModificationException
> 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
> 	at java.util.HashMap$ValueIterator.next(HashMap.java:922)
> 	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
> 	at java.util.ArrayList.<init>(ArrayList.java:151)
> 	at org.slf4j.helpers.SubstituteLoggerFactory.getLoggers(SubstituteLoggerFactory.java:65)
> 	at org.slf4j.LoggerFactory.fixSubstituteLoggers(LoggerFactory.java:216)
> 	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:154)
> 	... 5 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list