一个月以前做的一个apple推送功能,测试应用都没有问题,但是现在用总是报错,我没有做任何改动,请大神们帮我看看。
javapns.communication.exceptions.KeystoreException: Keystore exception: failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: PBE SecretKeyFactory not available
at javapns.communication.KeystoreManager.wrapKeystoreException(KeystoreManager.java:178)
at javapns.communication.KeystoreManager.loadKeystore(KeystoreManager.java:66)
at javapns.communication.KeystoreManager.loadKeystore(KeystoreManager.java:42)
at javapns.communication.KeystoreManager.loadKeystore(KeystoreManager.java:29)
at javapns.communication.ConnectionToAppleServer.<init>(ConnectionToAppleServer.java:54)
at javapns.notification.ConnectionToNotificationServer.<init>(ConnectionToNotificationServer.java:16)
at javapns.notification.PushNotificationManager.initializeConnection(PushNotificationManager.java:105)
at javapns.Push.sendPayload(Push.java:171)
at javapns.Push.payload(Push.java:149)
at test.TestPush.main(TestPush.java:26)
Caused by: java.io.IOException: failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: PBE SecretKeyFactory not available
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at javapns.communication.KeystoreManager.loadKeystore(KeystoreManager.java:64)
... 8 more
Caused by: java.io.IOException: getSecretKey failed: PBE SecretKeyFactory not available
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.getPBEKey(Unknown Source)
... 11 more
Caused by: java.security.NoSuchAlgorithmException: PBE SecretKeyFactory not available
at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
... 12 more