java.lang.NoClassDefFoundError: io/netty/handler/ssl/SslContextBuilder

荒凉一梦 提交于 2019-12-06 10:56:17

seems like you mix netty 4.1 and 4.0. You need to only use 4.1 if you want to use pushy.

Did you clean your classpath in between I created a test project containing only the dependency

<dependency>
    <groupId>com.turo</groupId>
    <artifactId>pushy</artifactId>
    <version>0.10</version>
</dependency>

and a simple main class just creating the client with the snipped you are using above and it works out fine

To me it looks like there might be two versions of BootstrapConfig on the classpath. Try to remove all dependencies besides pushy and clean/refreshing the maven dependencies.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!