wangyao5 / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

iOS Push Notification throws error #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Built the cloudManager 2.4-SNAPSHOT as per the guidelines
2. Deployed the CRUD Sample app on Cloud Server as well as on iOS device. 
3. Created the .p12 production certificate and uploaded it through the console. 
4. When trying to send a test push to the device. The following error shows up

What is the expected output? What do you see instead?
Expected: A push notification on the device. 
What I see: Nothing on the device. Following error message on the server. 
ERROR [PushService] org.openmobster.core.push.apn.PushService@c06cac
java.lang.NullPointerException
        at javapns.back.PushNotificationManager.stopConnection(Unknown Source)

What version of the product are you using? On what operating system?
2.4-SNAPSHOT

Please provide any additional information below.
Attached is the complete log of installation to the point where the server 
throws an error. 

Appreciate your help and thanks in advance. 
Thanks,
Anurag

Original issue reported on code.google.com by anuragjo...@gmail.com on 12 Sep 2013 at 7:57

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your feedback.

I have looked at your stacktrace and this trace seems to be a problem:

22:31:53,170 ERROR [PushService] 
org.openmobster.core.push.apn.PushService@c06cac
java.io.EOFException: Detect premature EOF
        at sun.misc.IOUtils.readFully(IOUtils.java:68)
        at sun.security.util.DerValue.init(DerValue.java:388)
        at sun.security.util.DerValue.<init>(DerValue.java:320)
        at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1204)
        at java.security.KeyStore.load(KeyStore.java:1201)
        at javapns.back.SSLConnectionHelper.<init>(Unknown Source)
        at javapns.back.PushNotificationManager.initializeConnection(Unknown Source)
        at org.openmobster.core.push.apn.PushService.findConnection(PushService.java:295)
        at org.openmobster.core.push.apn.PushService.push(PushService.java:245)
        at org.openmobster.core.push.apn.PushService.sendPushNotification(PushService.java:205)
        at org.openmobster.core.push.apn.PushService.push(PushService.java:150)
        at org.openmobster.core.dataService.comet.CometSession.sendiPhoneNotification(CometSession.java:253)
        at org.openmobster.core.dataService.comet.CometSession.messageIncoming(CometSession.java:163)
        at org.openmobster.core.common.bus.BusConsumer.sendBusListenerEvent(BusConsumer.java:184)
        at org.openmobster.core.common.bus.BusConsumer.consume(BusConsumer.java:120)
        at org.openmobster.core.common.bus.BusConsumer.run(BusConsumer.java:77)
        at java.lang.Thread.run(Thread.java:679)

It looks like your certificate is invalid. Its throwing an error while 
processing the certificate. May be try generating another certificate and try 
the same scenario again.

Original comment by openmobs...@gmail.com on 13 Sep 2013 at 5:56