Bonjour,
J'essaie de faire un test simple d'envoie de une push notification à un téléphone portable iphone à l'aide de l'api java-apns, ci dessous le code source de mon test :
L'exception que j'ai à l'exécution est la suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 String complex = APNS.newPayload().actionKey("Open App").localizedKey("javapns rocks %@ %@%@").localizedArguments("Test1", "Test", "2").badge(45).sound("default").customField("acme", "foo").customField("acme", 42).customField("acme3", Arrays.<Object> asList("value1", 2)).build(); String client = "ID_iphone"; ApnsService service = APNS.newService().withCert("c:/certificat.p12","password").withProductionDestination().build(); service.push(client, complex);
une solution svp ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 com.notnoop.exceptions.InvalidSSLConfig: java.io.IOException: failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: PBE SecretKeyFactory not available at com.notnoop.apns.internal.Utilities.newSSLContext(Utilities.java:102) at com.notnoop.apns.ApnsServiceBuilder.withCert(ApnsServiceBuilder.java:139) at com.notnoop.apns.ApnsServiceBuilder.withCert(ApnsServiceBuilder.java:114) at com.anthil.apns.service.Push.main(Push.java:87) 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 com.notnoop.apns.internal.Utilities.newSSLContext(Utilities.java:87) ... 3 more Caused by: java.io.IOException: getSecretKey failed: PBE SecretKeyFactory not available at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.getPBEKey(Unknown Source) ... 6 more Caused by: java.security.NoSuchAlgorithmException: PBE SecretKeyFactory not available at javax.crypto.SecretKeyFactory.<init>(DashoA13*..) at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..) ... 7 more
Partager