我有一個notnoop/java-apns的問題。 它拒絕發送推送通知形式,我有我的java服務器,我得到以下錯誤/異常:Notnoop/java-apns push
com.notnoop.exceptions.NetworkIOException:javax.net.ssl.SSLException:java.lang.RuntimeException:Unexpected錯誤:: trust.notors參數必須爲非空 at com.notnoop.apns.internal.Utilities.wrapAndThrowAsRuntimeException(Utilities.java:268) at com.notnoop.apns.internal.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:173 ) at com.notnoop.apns.internal.ApnsServiceImpl.push(ApnsServiceImpl.java:46) at com.notnoop.apns.internal.AbstractApnsService.push(AbstractApnsService.java:52) at com.notnoop.apns.internal .ApnsServiceImpl.push(ApnsServiceImpl.java:3 6) at com.kaniti.server.notification.impl.AppleIphoneNotificationJob.run(AppleIphoneNotificationJob.java:221) at java.lang.Thread.run(Thread.java:662) 由javax.net.ssl引起。 SSLException:java.lang.RuntimeException:意外錯誤::trustAnchors參數必須爲非空值 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun。 net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1612) at com.sun.net。 ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1595) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1521) at com.sun.net.ssl。在ternal.ssl.AppOutputStream.write(AppOutputStream.java:64) at java.io.OutputStream.write(OutputStream.java:58) at com.notnoop.apns.internal.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:161)
我使用相同的代碼,在不同的服務器上相同推證書,它是工作,但不是我的! 我似乎無法找出這個問題的原因。有沒有人曾經體驗過它?