The exception is coming from Netty, not Log4j 2. You would have to look at the 
Log4j2Logger class there and find out why it is throwing an exception.

Ralph

> On Feb 27, 2020, at 1:35 AM, Sandeep Gupta <gupta.sand...@gmail.com> wrote:
> 
> Hello,
> 
> I am new to java ecosystem and was handed this small code which
> launches a webserver. It gives a log4j version mismatch error that I
> am not able to debug further.
> For compilation, I am using log4j 2.12.1 version.
> 
> java.lang.ExceptionInInitializerError
>    application stacktrace
> Caused by: java.lang.UnsupportedOperationException: Log4J2 version mismatch
>    at io.netty.util.internal.logging.Log4J2Logger.<init>(Log4J2Logger.java:58)
>    at 
> io.netty.util.internal.logging.Log4J2LoggerFactory.newInstance(Log4J2LoggerFactory.java:33)
>    at 
> io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:93)
>    at 
> io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:86)
>    at 
> io.netty.channel.MultithreadEventLoopGroup.<clinit>(MultithreadEventLoopGroup.java:35)
>    ... 3 more
> 
> How do i figure out which version of log4j does netty or jvm requires.
> 
> Thank you for helping
> San
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to