mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

Java 7 compatibility #165

Open mwkirk opened 11 years ago

mwkirk commented 11 years ago

Original author: johannes...@gmail.com (February 07, 2013 15:33:53)

What steps will reproduce the problem?

  1. Create your .p12 file according to Apple´s workflow
  2. Take the Java class found in wiki: http://code.google.com/p/javapns/wiki/ManagingPushErrors
  3. Run with JDK 1.6 - Works correct!
  4. Change JDK to 1.7 - Does not work.

What is the expected output? What do you see instead? Expected a "Push notification sent successfully to...." But got:

javapns.communication.exceptions.InvalidCertificateChainException: Invalid certificate chain (Received fatal alert: certificate_unknown)! Verify that the keystore you provided was produced according to specs... at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:410) at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350) at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:320) at javapns.Push.sendPayload(Push.java:177) at javapns.Push.alert(Push.java:47) at my.test.JavapnsTest.main(JavapnsTest.java:17)

What version of the product are you using? On what operating system? Javapns 2.2. with OSX10.8.2

Please provide any additional information below.

Original issue: http://code.google.com/p/javapns/issues/detail?id=165

mwkirk commented 11 years ago

From sype...@gmail.com on February 07, 2013 16:02:20 Indeed, the documented requirements indicates that there are problems with SSL connections under Java 7.

mwkirk commented 11 years ago

From johannes...@gmail.com on February 08, 2013 05:44:54 Yes, I have read the documentation. However since both Java 5 and 6 reached EOL and therefore, in the best of worlds, shouldn't be used, I raised this issue to see if anyone did come up with a solution to this problem. Anyone?