org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: io/netty/channel/ChannelHandler

GitHub | yburkouski | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    reactor-netty profile start fail

    GitHub | 7 months ago | yburkouski
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: io/netty/channel/ChannelHandler
  2. 0
    samebug tip
    Look for missing class files, specially org.I0Itec.zkclient.IZkStateListener.
  3. 0

    Edison - Use Google-Gson library with Eclipse (... | Intel Communities

    intel.com | 1 year ago
    java.lang.NoClassDefFoundError: com/google/gson/Gson
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JAR built by Gradle can't find Gson

    Stack Overflow | 9 months ago | ambigram_maker
    java.lang.NoClassDefFoundError: com/google/gson/Gson
  6. 0

    ClassNotFoundException when building with gradle and trying to use com.google.code.gson

    Stack Overflow | 3 weeks ago | thias
    java.lang.NoClassDefFoundError: com/google/gson/Gson
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    io.netty.channel.ChannelHandler

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_66]
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_66]
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_66]
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_66]
    4 frames
  3. Spring Boot
    ReactiveWebApplicationContext.onRefresh
    1. org.springframework.boot.context.embedded.ReactorEmbeddedReactiveHttpServer.afterPropertiesSet(ReactorEmbeddedReactiveHttpServer.java:36)[classes/:1.4.0.BUILD-SNAPSHOT]
    2. org.springframework.boot.context.embedded.ReactorEmbeddedHttpServerFactory.getReactiveHttpServer(ReactorEmbeddedHttpServerFactory.java:33)[classes/:1.4.0.BUILD-SNAPSHOT]
    3. org.springframework.boot.context.embedded.ReactiveWebApplicationContext.createReactiveHttpServer(ReactiveWebApplicationContext.java:74)[classes/:1.4.0.BUILD-SNAPSHOT]
    4. org.springframework.boot.context.embedded.ReactiveWebApplicationContext.onRefresh(ReactiveWebApplicationContext.java:49)[classes/:1.4.0.BUILD-SNAPSHOT]
    4 frames
  4. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)[spring-context-5.0.0.M1.jar:5.0.0.M1]
    1 frame
  5. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.BUILD-20160728.175440-591.jar:1.4.0.BUILD-SNAPSHOT]
    2. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.BUILD-20160728.175440-591.jar:1.4.0.BUILD-SNAPSHOT]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.BUILD-20160728.175440-591.jar:1.4.0.BUILD-SNAPSHOT]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.BUILD-20160728.175440-591.jar:1.4.0.BUILD-SNAPSHOT]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.BUILD-20160728.175440-591.jar:1.4.0.BUILD-SNAPSHOT]
    5 frames
  6. sample.web.reactive
    ReactiveSampleApplication.main
    1. sample.web.reactive.ReactiveSampleApplication.main(ReactiveSampleApplication.java:11)[classes/:na]
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
    4 frames
  8. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)[idea_rt.jar:na]
    1 frame