java에서 다음 에러 발생했다.
이런 문제는 간단히 둘 중 하나를 정리한다. 나는 slf4j-log4j12를 제외시킨다.
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError
.
The purpose of slf4j-log4j12 module is to delegate or redirect calls made to an SLF4J logger to log4j. The purpose of the log4j-over-slf4j module is to redirect calls made to a log4j logger to SLF4J. If both slf4j-log4j12.jar and log4j-over-slf4j.jar are present on the class path, a StackOverflowError
will inevitably occur immediately after the first invocation of an SLF4J or a log4j logger.
http://www.slf4j.org/images/legacy.png
비슷한 이슈는 또 있다..
참조 )http://www.slf4j.org/codes.html
jul-to-slf4j.jar and slf4j-jdk14.jar cannot be present simultaneously
The presence of slf4j-jdk14.jar, that is the jul binding for SLF4J, will force SLF4J calls to be delegated to jul. On the other hand, the presence of jul-to-slf4j.jar, plus the installation of SLF4JBridgeHandler, by invoking "SLF4JBridgeHandler.install()" will route jul records to SLF4J. Thus, if both jar are present simultaneously (and SLF4JBridgeHandler is installed), slf4j calls will be delegated to jul and jul records will be routed to SLF4J, resulting in an endless loop.
'general java' 카테고리의 다른 글
[Guava] comparator를 여러 번 이용해서 Object 소팅하기 (0) | 2015.04.08 |
---|---|
[eclipse] tab 또는 빈 공백 없애기 (0) | 2015.04.03 |
[play1] python 2.4에서의 1.3.0 실행 (0) | 2015.03.26 |
[Spring] Spring에서 dynamic하게 bean 을 생성하는 법 / ConfigurableListableBeanFactory.registerSingleton() (0) | 2015.03.25 |
[Guava] HashBiMap (0) | 2015.03.25 |