hengsokchamroeun / javapns

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

mac is ok,linux is bad? #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
在MAC下布了一台推送服务器跑起来很正常,发送消息也正常��
�

12-12-6 17:48:46 DEBUG (javapns.notification.Payload:219) - Adding alert 
[1210007]
12-12-6 17:48:46 DEBUG (javapns.communication.ConnectionToAppleServer:94) - 
Creating SSLSocketFactory
12-12-6 17:48:46 DEBUG (javapns.communication.ConnectionToAppleServer:149) - 
Creating SSLSocket to gateway.sandbox.push.apple.com:2195
12-12-6 17:48:48 DEBUG (javapns.notification.PushNotificationManager:111) - 
Initialized Connection to Host: [gateway.sandbox.push.apple.com] Port: [2195]: 
2e879860[SSL_NULL_WITH_NULL_NULL: 
Socket[addr=gateway.sandbox.push.apple.com/17.149.34.66,port=2195,localport=5284
3]]
12-12-6 17:48:48 DEBUG (javapns.notification.PushNotificationManager:538) - 
Building Raw message from deviceToken and payload
12-12-6 17:48:48 DEBUG (javapns.notification.PushNotificationManager:617) - 
Built raw message ID 1 of total length 72
12-12-6 17:48:48 DEBUG (javapns.notification.PushNotificationManager:396) - 
Attempting to send notification: {"aps":{"alert":"1210007"}}
12-12-6 17:48:48 DEBUG (javapns.notification.PushNotificationManager:397) -   
to device: 04148cdde764f05ba7fb368df18998c5324449d466c8aee7afd130b0b8361f52
12-12-6 17:48:49 DEBUG (javapns.notification.PushNotificationManager:415) - 
Flushing
12-12-6 17:48:49 DEBUG (javapns.notification.PushNotificationManager:417) - At 
this point, the entire 72-bytes message has been streamed out successfully 
through the SSL connection
12-12-6 17:48:49 DEBUG (javapns.notification.PushNotificationManager:420) - 
Notification sent on first attempt
12-12-6 17:48:49 DEBUG (javapns.notification.PushNotificationManager:222) - 
Reading responses
12-12-6 17:48:54 DEBUG (javapns.notification.PushNotificationManager:200) - 
Closing connection

我把服务器布署到liunx下之后就不正常了,不发送了。
12-12-6 16:42:28 DEBUG (javapns.notification.Payload:219) - Adding alert 
[1212100212]
12-12-6 16:42:28 DEBUG (javapns.communication.ConnectionToAppleServer:94) - 
Creating SSLSocketFactory
12-12-6 16:42:28 DEBUG (javapns.communication.ConnectionToAppleServer:149) - 
Creating SSLSocket to gateway.sandbox.push.apple.com:2195
12-12-6 16:42:28 DEBUG (javapns.notification.PushNotificationManager:111) - 
Initialized Connection to Host: [gateway.sandbox.push.apple.com] Port: [2195]: 
5a940f82[SSL_NULL_WITH_NULL_NULL: 
Socket[addr=gateway.sandbox.push.apple.com/17.149.34.66,port=2195,localport=3654
7]]
12-12-6 16:42:28 DEBUG (javapns.notification.PushNotificationManager:222) - 
Reading responses
12-12-6 16:42:35 DEBUG (javapns.notification.PushNotificationManager:200) - 
Closing connection

can you help me!!!

Original issue reported on code.google.com by chencong...@163.com on 6 Dec 2012 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by sype...@gmail.com on 6 Jan 2013 at 10:34