大佬教程收集整理的这篇文章主要介绍了在类路径上检测到log4j-over-slf4j.jar和slf4j-log4j12.jar,从而抢占了StackOverflowError。,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
因此,您必须排除冲突依赖性。试试这个:
<exclusions>
<exclusion>
<groupID>org.slf4j</groupID>
<artifactID>slf4j-log4j12</artifactID>
</exclusion>
<exclusion>
<groupID>log4j</groupID>
<artifactID>log4j</artifactID>
</exclusion>
</exclusions>
这解决了slf4j和Dozer的相同问题。
我xuggle library
在项目中曾使用来转码来自的视频@H_754_5@mp4 to flv。我也曾经用来slf4j libraries
支持日志记录结束。
import com.xuggle.mediatool.IMediaReader;
import com.xuggle.mediatool.IMediaViewer;
import com.xuggle.mediatool.IMediaWriter;
import com.xuggle.mediatool.ToolFactory;
public class TranscodingExample {
private static final String inputFilename = "E:\\VIDEO\\Facebook.mp4";
private static final String outputFilename = "E:\\VIDEO\\Facebook.flv";
public static void main(String[] args) {
// create a media reader
IMediaReader mediaReader =
ToolFactory.makeReader(inputFileName);
// create a media writer
IMediaWriter mediaWriter =
ToolFactory.makeWriter(outputFilename,mediaReader);
// add a writer to the reader,to create the output file
mediaReader.addListener(mediaWriter);
// create a media viewer with stats enabled
IMediaViewer mediaViewer = ToolFactory.makeViewer(true);
// add a viewer to the reader,to see the decoded media
mediaReader.addListener(mediaViewer);
// read and decode packets from the source file and
// and dispatch decoded audio and video to the writer
while (mediaReader.readPacket() == null) ;
}
}
在这里我得到一个错误
"Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path,preempTing StackOverflowError.".
我已将两个jar文件都用作库,以解决日志记录问题。有没有人遇到过同样的问题,如果这样的话,请写出解决这个问题的建议或解决方案。提前致谢。
以上是大佬教程为你收集整理的在类路径上检测到log4j-over-slf4j.jar和slf4j-log4j12.jar,从而抢占了StackOverflowError。全部内容,希望文章能够帮你解决在类路径上检测到log4j-over-slf4j.jar和slf4j-log4j12.jar,从而抢占了StackOverflowError。所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。