12-20-2012 08:28 AM
Hi,
If two messages are recieved simultaneously, the receiver won't work?
12-20-2012 08:32 AM
Are you using the Push Service SDK or your own implementation? If the former, did you make any modifications to the SDK code?
12-20-2012 08:42 AM
Annuk, what do you mean specifically when you say "the receiver"?
12-20-2012 08:46 AM
Hi,
I am using the webworks sdk for recieving push notifications on the device.
On server i have done some slight modifications to the code.
I think I am using two different appids on two diff servers and both have different ports. Will let you know after testing.
Regards,
Annuk
12-20-2012 08:46 AM
Receiver means the client my app on the device.
12-20-2012 08:54 AM
Whether the app can receive multiple pushes in close succession depends on how you coded it. Make sure to read the data then unblock so new data can be read.
You could also implement ACKs so the client can verify which pushes were received.
12-21-2012 07:36 AM
Hi Garett,
Thanks.
Actually i was using two different accounts for sending to the Push server. Both accounts had different ports assigned to me. Now its working fine.
Thanks for your time and help.
Can you please help me with this: http://supportforums.blackberry.com/t5/Native-Deve
I want to set up my environment for Blackberry10 development on linux but not able to do so.
Regards,
Annuk.
02-01-2013 08:46 AM - edited 02-01-2013 11:32 PM
Hi Garett,
We moved to production account for sending pushes.
When we tried on the test environment, the account works fine and was able to send the messages.
But when I deployed my push initiator on the production environment, it started giving me the Socket exception.
What could be the reason.
Please find the stack trace.
INFO 2013-02-01 18:56:00,992 [pool-76-thread-1] (?:?) (sendIndividualMessage) - Exception while sendIndividualMessage message.. net.rim.pushsdk.commons.PushSDKException: SocketTimeoutException caught sending message to PPG URL address: https://cpXXX.pushapi.na.blackberry.com/mss/PD_pushRequest at net.rim.pushsdk.pap.PapServiceImpl.sendToPpg(PapSe rviceImpl.java:424) at net.rim.pushsdk.pap.PapServiceImpl.pushToPpg(PapSe rviceImpl.java:387) at net.rim.pushsdk.pap.PapServiceImpl.push(PapService Impl.java:152) at com.annuk.sendblackberry.push.pushBlackberryNotifi cations(Unknown Source) at com.annuk.sendblackberry.push.sendIndividualMessag e(Unknown Source) at com.annuk.sendblackberry.push.sendNotifications(Un known Source) at com.annuk.sendblackberry.push.server.Notifications Schedular.createMessageAndSendNotifications(Unknow n Source) at com.annuk.sendblackberry.push.server.Notifications Schedular$2.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.jav a:138) at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366) at java.net.Socket.connect(Socket.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (SSLSocketImpl.java:559) at sun.net.NetworkClient.doConnect(NetworkClient.java :158) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394 ) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529 ) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.jav a:329) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnect ion.getNewHttpClient(AbstractDelegateHttpsURLConne ... at sun.net.www.protocol.http.HttpURLConnection.plainConnect(H ttpURLConnection.java:916) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnect ion.connect(AbstractDelegateHttpsURLConnection.jav ... at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect( HttpsURLConnectionImpl.java:133) at net.rim.pushsdk.commons.http.HttpClientImpl.getUrl Connection(HttpClientImpl.java:256) at net.rim.pushsdk.commons.http.HttpClientImpl.transm itPOST(HttpClientImpl.java:82) at net.rim.pushsdk.pap.PapServiceImpl.sendToPpg(PapSe rviceImpl.java:407) ... 12 more ERROR 2013-02-01 18:56:00,991 [pool-75-thread-1] (PapServiceImpl.java:158) (push) - PushSDKException caught: net.rim.pushsdk.commons.PushSDKException: SocketTimeoutException caught sending message to PPG URL address: https://cpXXX.pushapi.na.blackberry.com/mss/PD_pus hRequest at net.rim.pushsdk.pap.PapServiceImpl.sendToPpg(PapSe rviceImpl.java:424) at net.rim.pushsdk.pap.PapServiceImpl.pushToPpg(PapSe rviceImpl.java:387) at net.rim.pushsdk.pap.PapServiceImpl.push(PapService Impl.java:152) at com.annuk.sendblackberry.push.pushBlackberryNotifi cations(Unknown Source) at com.annuk.sendblackberry.push.sendIndividualMessag e(Unknown Source) at com.annuk.sendblackberry.push.sendNotifications(Un known Source) at com.annuk.sendblackberry.push.server.Notifications Schedular.createMessageAndSendNotifications(Unknow n Source) at com.annuk.sendblackberry.push.server.Notifications Schedular$2.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.jav a:138) at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366) at java.net.Socket.connect(Socket.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (SSLSocketImpl.java:559) at sun.net.NetworkClient.doConnect(NetworkClient.java :158) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394 ) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529 ) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.jav a:329) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnect ion.getNewHttpClient(AbstractDelegateHttpsURLConne ... at sun.net.www.protocol.http.HttpURLConnection.plainConnect(H ttpURLConnection.java:916) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnect ion.connect(AbstractDelegateHttpsURLConnection.jav ... at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect( HttpsURLConnectionImpl.java:133) at net.rim.pushsdk.commons.http.HttpClientImpl.getUrl Connection(HttpClientImpl.java:256) at net.rim.pushsdk.commons.http.HttpClientImpl.transm itPOST(HttpClientImpl.java:82) at net.rim.pushsdk.pap.PapServiceImpl.sendToPpg(PapSe rviceImpl.java:407) ... 12 more
Please help.
Regards,
Annuk
02-01-2013 08:48 AM
Hi Annuk,
Could you clarify "test" and "production" environments? Are these 2 separate servers you are running or are you referring to EVAL and PROD Push Services?
02-01-2013 08:53 AM
Hi Garett,
Thanks for your reply.
I am using two servers, test and production.
My Blackberry push PROD account works fine on test server, but when moved to production server it started giving me the SOCKETEXCEPTION. Could it be due to firewall blocking or some network issue?