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

后端 未结 7 2019
南方客
南方客 2020-12-04 23:31

I have used xuggle library in my project to trans code the video from mp4 to flv. I have used slf4j libraries also to support logging

相关标签:
7条回答
  • 2020-12-05 00:08

    You asked if it is possible to change the circular dependency checking in those slf4j classes.

    The simple answer is no.

    • It is unconditional ... as implemented.
    • It is implemented in a static initializer block ... so you can't override the implementation, and you can't stop it happening.

    So the only way to change this would be to download the source code, modify the core classes to "fix" them, build and use them. That is probably a bad idea (in general) and probably not solution in this case; i.e. you risk triggering the stack overflow problem that the message warns about.

    Reference:

    • The source code.

    The real solution (as you identified in your Answer) is to use the right JARs. My understanding is that the circularity that was detected is real and potentially problematic ... and unnecessary.

    0 讨论(0)
提交回复
热议问题