Closed mwkirk closed 11 years ago
From sype...@gmail.com on February 05, 2013 19:33:58 Do you still have that exception?
From mani.ala...@gmail.com on February 06, 2013 06:00:25 Hi,
Yes, we are still facing that exception.
From sype...@gmail.com on February 07, 2013 00:06:06 The following page seems to provide quite a lot of information related to your particular exception:
Also, are you by any chance using "" (blank string) as a password for the keystore?
If nothing helps, could you please attach a copy of your source code?
Thank you!
From sype...@gmail.com on March 01, 2013 17:18:44 Closing for lack of feedback from original poster.
Original author: mani.ala...@gmail.com (January 24, 2013 10:33:02)
What steps will reproduce the problem? 1. 2. 3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system? Javapns-2.2 and bcprov-jdk15-146
Please provide any additional information below.
We are facing issue while pushing the Apple notifications. Could you please provide some information on how to resolve this issue.
We are able to push the notifications successfully with the standalone program by using the same certificate and the same server.
Below is the exception we are getting while pushing the notifications after integrating the code with schedulers.
|javapns.communication.exceptions.KeystoreException||Keystore exception: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size||Stack Trace : javapns.communication.exceptions.KeystoreException: Keystore exception: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size 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.combined(Push.java:100) at com.scheduler.managedtask.helper.PushNotificationHelper.pushSevereAlerts(Unknown Source) at com.scheduler.managedtask.helper.PushNotificationHelper.pushNotification(Unknown Source) at com.scheduler.managedtask.SeverePushNotificationTask.pushNotifications(SeverePushNotificationTask.java:58) at com.scheduler.managedtask.SeverePushNotificationTask.execute(SeverePushNotificationTask.java:44) at com.scheduler.scheduledtask.IterativeManagedTaskAdaptor.process(IterativeManagedTaskAdaptor.java:201) at livexp.coreimpl.asal.FluxActionListenerAdaptor.actionFired(FluxActionListenerAdaptor.java:47) at fluximpl.JavaActionImpl.a(JavaActionImpl.java:0) at fluximpl.p8.a(p8.java:641) at fluximpl.p8.b(p8.java:565) at fluximpl.p8.a(p8.java:353) at fluximpl.m9.d(m9.java:23) at fluximpl.o2c.run(o2c.java:10) Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source) at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:1150) at javapns.communication.KeystoreManager.loadKeystore(KeystoreManager.java:64)
Original issue: http://code.google.com/p/javapns/issues/detail?id=163