Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError
SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.log4j.LogManager.getLogger(LogManager.java:44)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
....
Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
at org.apache.log4j.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:51)
... 11 more
原因是引用了两个关于log4j的jar,造成死循环
log4j-over-slf4j-1.7.7.jar
slf4j-log4j12-1.7.7.jar
但只引用slf4j-log4j12-1.7.7.jar会提示org.apache.log4j.Level这个class找不到
要使用log4j记录日志,其实只用引用log4j-over-slf4j-1.7.7.jar就可以了
相关推荐
开机提示USB-Device-over-current-status-Detected后关机1.doc
压缩包内包含 ecj-4.6.2.jar 和 Util.class两个文件 使用说明: 1. 如果你的IDEA是2017.2.2版本,那么直接把ecj-4.6.2.jar放到你的IDEA安装目录下lib文件夹中替换原文件即可 2. 如果你是其他版本的IDEA,那么用压缩...
DLL: Renesas R5F51306 (RX130) devices were not detected by the J-Link DLL. Fixed. DLL: Renesas RX231: OFS1 could not be modified. Fixed. DLL: Renesas RX: Added support for RX66N series devices DLL: ...
Using SLF4J ............................................................................................ 13 Using Log4J ...................................................................................
webkitgtk4-jsc-2.28.2-2.el7.x86_64.rpm
Using SLF4J ............................................................................................ 13 Using Log4J ...................................................................................
Now the JAR file environment (J2SE or J2ME) is detected. The "Run JAR without JAD" feature is available (it will create a temporary JAD file). This powerful tool is very useful for Java developers ...
USB Device Over Current Status Detected! System will Shut Down After 15 Second!这个应该是华硕主板的通病,一般都是跳线未设置好或USB电源短路造成的,提供一张维修方法,仅供参考。
Now the JAR file environment (J2SE or J2ME) is detected. The "Run JAR without JAD" feature is available (it will create a temporary JAD file). This powerful tool is very useful for Java developers ...
centos7_XFS_报Corruption of in-memory data detected错误修复
debug时候出现NO ST-LINK Detected的错误提示,下了很多 ST-LINK驱动都不好用,这款好用,下载后点击ST-LINK_USB_V2_1_Driver文件夹下的stlink_winusb_install.bat进行安装即可
the root disturbance because the effects can propagate and be detected elsewhere. Measurement-based methods use quantitative process history to generate hypotheses about the root cause, while a ...
WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable Consider installing the package with apt-get or yum. e.g. 'sudo apt-get install libwebkitgtk-1.0-0' 如上所示,在centos里运行...
1.3.3 Acquisition, Tracking, and Pointing............................................ 10 1.3.4 Detectors........................................................................................ 12 ...
device changing is detected, the CDC serial port can be opened automatically. ;; This utility can be a serial port server as well. It will pass all data read ;; from the serail port to the client ...
今天启动项目,测试时,发现一个报错:Duplicate keys detected: ‘892834eb-a50c-488c-83ea-cc23f05e2875’. This may cause an update。具体如下: 问题:使用Element UI的Tree 树形控件出现问题。 上网查了一下...
转载至ST link官方链接 官方是免费下载的,因此不应该所需积分下载,这里动态调分设置为不允许 升级ST-link的官网链接: ...滑到最下面直接download并接受选择Accept即可,也可以直接用我转载的资源 ...
编译好的x265,带y4m文件 Syntax: x265 [options] infile [-o] outfile infile can be YUV or Y4M outfile is raw HEVC bitstream Executable Options: -h/--help Show this help text and exit -V/--version ...
# A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=1844, tid=0x0000000000001660 # # JRE version: Java(TM) SE ...
6. File duplicates are detected and removed. 7. Both big and little endian architectures are supported. Squashfs can mount filesystems created on different byte order machines. 2. USING SQUASHFS -...