我正尝试使用javapns库中的liferay向我的设备发送推送通知。下面的代码:收到致命警报:handshake_failure
private void pushNotification(ActionRequest actionRequest,
ActionResponse actionResponse) {
try {
System.out.println("Push");
Push.alert("Hello World!", "ck.p12", "PASSPHRASE", false, "TOKEN");
} catch (CommunicationException e) {
System.out.println("CommunicationException");
e.printStackTrace();
} catch (KeystoreException e) {
System.out.println("KeystoreException");
e.printStackTrace();
}
}
我得到这个错误时,pushNotification叫:
ERROR [PushNotificationManager:450] Delivery error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
我GOOGLE了它,但无法找到任何解决方案。
有谁知道如何解决这个问题?
是的,我面临同样的问题。您需要为服务器提供密钥库和密钥库密码。 – 2013-09-20 14:25:06