我是javapns的新手。尝试访问代码时,我得到以下异常。我检查了我的证书只是正确的。我不知道为什么我会收到这个错误。
Validating keystore reference: VALID (keystore was found)
Verifying keystore content: VERIFIED (no common mistakes detected)
log4j:WARN No appenders could be found for logger (javapns.notification.Payload).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
All notifications failed (1):
[1] not transmitted to token b74be..4c4ec javapns.communication.exceptions.InvalidCertificateChainException: Invalid certificate chain (Received fatal alert: certificate_unknown)! Verify that the keystore you provided was produced according to specs...
答案 0 :(得分:0)
我遇到了同样的问题并通过将JVM从OpenJDK 1.7更改为OpenJDK 1.6来解决它