[slf4j-user] Stackoverflow Error

Claude Brisson claude at renegat.net
Thu Apr 12 13:42:03 CEST 2018


Yes. If you pipe log4j towards slf4j and slf4j towards log4j, you'll get 
a problem somewhere...

   Claude


On 12/04/2018 12:53, Debraj Manna wrote:
> Hi
>
> I am getting the below stackoverflow error
>
> Java Extension Directory 
> /usr/lib/jvm/jdk1.8/jre/lib/ext:/usr/java/packages/lib/ext
> Exception in thread "main" java.lang.StackOverflowError
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> at 
> org.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:39)
> at org.apache.log4j.LogManager.getLogger(LogManager.java:45)
> at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> at org.apache.log4j.Category.<init>(Category.java:57)
> at org.apache.log4j.Logger.<init>(Logger.java:37)
> at 
> org.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:43)
> at org.apache.log4j.LogManager.getLogger(LogManager.java:45)
> ...
>
> Can someone let me know what is going wrong ?
>
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20180412/013900bf/attachment.html>


More information about the slf4j-user mailing list