question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My Android App netty-all-4.1.23.Final.jar change to 4.1.31.Final.jar and show this wrong, just show this log

See original GitHub issue

this is the log::::::::::: I: Rejecting re-init on previously-failed class java.lang.Class<io.netty.util.internal.logging.Log4J2Logger>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/logging/log4j/spi/ExtendedLoggerWrapper; I: at io.netty.util.internal.logging.InternalLoggerFactory io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactory(java.lang.String) (InternalLoggerFactory.java:50) I: at io.netty.util.internal.logging.InternalLoggerFactory io.netty.util.internal.logging.InternalLoggerFactory.getDefaultFactory() (InternalLoggerFactory.java:67) I: at io.netty.util.internal.logging.InternalLogger io.netty.util.internal.logging.InternalLoggerFactory.getInstance(java.lang.String) (InternalLoggerFactory.java:93) I: at io.netty.util.internal.logging.InternalLogger io.netty.util.internal.logging.InternalLoggerFactory.getInstance(java.lang.Class) (InternalLoggerFactory.java:86) I: at void io.netty.channel.MultithreadEventLoopGroup.<clinit>() (MultithreadEventLoopGroup.java:35) I: at void com.dlm.amazingcircle.net.netty.NettyClient.connectServer() (NettyClient.java:78) I: at void com.dlm.amazingcircle.net.netty.NettyClient.access$200(com.dlm.amazingcircle.net.netty.NettyClient) (NettyClient.java:27) I: at void com.dlm.amazingcircle.net.netty.NettyClient$1.run() (NettyClient.java:66) I: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.logging.log4j.spi.ExtendedLoggerWrapper" on path: DexPathList[[zip file "/data/app/com.dlm.amazingcircle-2/base.apk", zip file "/data/app/com.dlm.amazingcircle-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.dlm

Expected behavior

Actual behavior

Steps to reproduce

Minimal yet complete reproducer code (or URL to code)

EventLoopGroup group = new NioEventLoopGroup();

Netty version

netty-4.1.31.Final

JVM version (e.g. java -version)

Java 1.8

OS version (e.g. uname -a)

macos 10.12.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
johnoucommented, Nov 26, 2018

@jasonSuzhow you can set it like this…

InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE);
0reactions
johnoucommented, Nov 28, 2018

@normanmaurer slf4j in Netty 5?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found