RamosLi / dbay-apns-for-java

High performance Java client for APNS(Apple Push Notification Service)
Apache License 2.0
238 stars 152 forks source link

com.dbay.apns4j.impl.ApnsConnectionImpl [10] dev-10 Connection reset #19

Open youxiang opened 9 years ago

youxiang commented 9 years ago

作者你好,在使用过程中遇到这种问题,尝试3次后发送失败,还望解答一下哈 2015-09-30 09:59:35,221 [pool-8-thread-2] ERROR com.dbay.apns4j.impl.ApnsConnectionImpl [10] dev-10 Connection reset java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) at java.io.OutputStream.write(OutputStream.java:58) at com.dbay.apns4j.impl.ApnsConnectionImpl.sendNotification(ApnsConnectionImpl.java:167) at com.dbay.apns4j.impl.ApnsConnectionImpl.sendNotification(ApnsConnectionImpl.java:123) at com.dbay.apns4j.impl.ApnsServiceImpl$1.run(ApnsServiceImpl.java:69) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 2015-09-30 09:59:35,222 [pool-8-thread-2] ERROR com.dbay.apns4j.impl.ApnsConnectionImpl [10] dev-10 Notification send failed. id=122 token=166d43a54c13bc562ac0bc524e52b4856fb73733aac4dbda18af11e9a0289c31 payload={"mId":"25119","aps":{"sound":"default","alert":"You have got a new message.","badge":1},"param":"100794","subject":"","link":4,"prod":"mic"}