大神求助:使用NettyHttpClient 异步推送消息出错

15b005a7a6357d0a5ae1
2018-09-14 10:47 1.1k 0
Exception in thread "main" java.lang.NoSuchMethodError: io.netty.handler.ssl.SslContext.newClientContextInternal(Lio/netty/handler/ssl/SslProvider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext;
    at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:406)
    at cn.jiguang.common.connection.NettyHttpClient.<init>(NettyHttpClient.java:53)
    at jgtest.Jpush.testSendPushWithCallback(Jpush.java:29)
    at jgtest.Jpush.main(Jpush.java:49)

以上为报错信息

pom.xml 里配置了全部jar包

在pom.xml里去掉原有项目springcloud包,则可以正常运行

```

org.springframework.cloud
spring-cloud-starter-ribbon
1.4.5.RELEASE

1个回答

热门排序
  • 15b005a7a6357d0a5ae1
    2018-09-14 10:49
    &lt;dependency&gt; &lt;groupId&gt;cn.jpush.api&lt;/groupId&gt; &lt;artifactId&gt;jpush-client&lt 展示全部