카테고리 없음2016. 8. 3. 15:26
반응형

Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar



Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preemptingStackOverflowError.

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 SLF4J is bound withslf4j-log4j12.jar and log4j-over-slf4j.jar is also present on the class path, a StackOverflowError will inevitably occur immediately after the first invocation of an SLF4J or a log4j logger.

Here is how the exception might look like:

Exception in thread "main" java.lang.StackOverflowError
  at java
.util.Hashtable.containsKey(Hashtable.java:306)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:36)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  at org
.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
  at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:249)
  at org
.apache.log4j.Category.<init>(Category.java:53)
  at org
.apache.log4j.Logger..<init>(Logger.java:35)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:39)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  at org
.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
  at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:249)
  at org
.apache.log4j.Category..<init>(Category.java:53)
  at org
.apache.log4j.Logger..<init>(Logger.java:35)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:39)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  subsequent lines omitted
...

SINCE 1.5.11 SLF4J software preempts the inevitable stack overflow error by throwing an exception with details about the actual cause of the problem. This is deemed to be better than leaving the user wondering about the reasons of the StackOverflowError.

For more background on this topic see Bridging legacy APIs.



-----------------------------------------------


pom.xml hierarchy 에서 의존성 관계 확인후 예외 처리

Posted by 1010
카테고리 없음2016. 8. 3. 10:57
반응형

Problem
CentOS installation fails with the message:
“Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated”.

Solution 1
Add the corresponding repository server. In case of CentOS 6.5 64bit: http://mirror.centos.org/centos/6.5/os/x86_64/

Solution 2
See the following stackoverflow thread: http://stackoverflow.com/questions/21637068/unable-to-read-package-metadata-this-may-be-due-to-missing-repodata-directory


확인해 보니 mirror 경로가 변경되었다. 괜히 삽질


http://mirror.centos.org/centos/6/os/x86_64/

Posted by 1010