Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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

Richard:

I am trying to implement relayrides/pushy, but am getting the following runtime error:


Jun 28, 2017 2:06:58 PM com.turo.pushy.apns.SslUtil getSslProvider
INFO: Native SSL provider not available; will use JDK SSL provider.
Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/handler/ssl/SslContextBuilder
at com.turo.pushy.apns.ApnsClientBuilder.build(ApnsClientBuilder.java:396)
at com.jobs.spring.service.NotificationServiceImpl.sendIOSPushNotification(NotificationServiceImpl.java:122)

Caused by: java.lang.ClassNotFoundException: io.netty.handler.ssl.SslContextBuilder

pom.xml



org.apache.httpcomponents
httpclient
4.5.2



com.turo
pushy
0.10


io.netty
netty-tcnative
2.0.5.Final


io.netty
netty-handler
4.0.27.Final


com.ning
async-http-client
1.9.40


com.google.code.gson
gson
2.8.1


java


final ApnsClient apnsClient = new ApnsClientBuilder()
.setClientCredentials(new File(PATH_TO_P12_CERT), CERT_PASSWORD )
.build();

I am guessing my mvn dependencies are incorrect. Any help appreciated.

UPDATE

I updated my dependencies to:



com.turo
pushy
0.10


io.netty
netty-all
4.1.11.Final


io.netty
netty-tcnative
2.0.1.Final


com.google.code.gson
gson
2.6


But now get:


Jun 28, 2017 2:40:18 PM com.turo.pushy.apns.SslUtil getSslProvider
INFO: Native SSL provider not available; will use JDK SSL provider.
Exception in thread "main" java.lang.NoSuchMethodError: io.netty.bootstrap.Bootstrap.config()Lio/netty/bootstrap/BootstrapConfig;
at com.turo.pushy.apns.ApnsClient.(ApnsClient.java:172)
at com.turo.pushy.apns.ApnsClientBuilder.build(ApnsClientBuilder.java:420)
at com.jobs.spring.service.NotificationServiceImpl.sendIOSPushNotification(NotificationServiceImpl.java:121)



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

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

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×