ios javawpns推送问题

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[na:1.8.0_11]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343) ~[na:1.8.0_11]
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:728) ~[na:1.8.0_11]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) ~[na:1.8.0_11]
at java.io.OutputStream.write(OutputStream.java:75) ~[na:1.8.0_11]
at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:402) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199) [JavaPNS-2.2.jar:2.2 r000]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505) ~[na:1.8.0_11]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954) ~[na:1.8.0_11]
... 9 common frames omitted

以上是异常信息,哪位大声帮给看看

2个回答

首先注册通知:
=.=在iOS8中注册通知的方式略有不同如下代码:

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    //注册通知
    if ([UIDevice currentDevice].......
    答案就在这里:ios 推送 问题
    ----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

ssl.AppOutputStream.write(AppOutputStream.java:123) ~[na:1.8.0_11]
at java.io.OutputStream.write(OutputStream.java:75) ~[na:1.8.0_11]
at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:402) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228) [JavaPNS-2.2.jar:2.2 r000]
at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199) [JavaPNS-2.2.jar:2.2 r000]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505) ~[

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问