Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

IOException caught sending message to PPG URL address:

Hi,

 

We have developed a push initiator which pushes notifications to the blackberry server. It was working fine sending notifications as expected. But from yesterday we are getting the following error:

 

PushSDKException caught:
net.rim.pushsdk.commons.PushSDKException: IOException caught sending message to PPG URL address: https://pushapi.eval.blackberry.com

Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:787)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:697)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:640)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:662)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
    at net.rim.pushsdk.commons.http.HttpClientImpl.transmitPOST(HttpClientImpl.java:92)
    at net.rim.pushsdk.pap.PapServiceImpl.sendToPpg(PapServiceImpl.java:407)
    ... 12 more

 

What could be the problem here. My eval account will expire on 12/28/2012.

 

Regards,

Annuk

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IOException caught sending message to PPG URL address:

Hi Annuk,

 

Did you make any changes at all to either the server code or the XML being sent?

What is the full URL to which you are submitting the request?

Was this working previously?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Re: IOException caught sending message to PPG URL address:

Hi,

 

The code was working perfectly fine.

Didnt make any changes too it. It was sending messages and I was receiving it successfully.

the full url in my pushsdk.properties is https://pushapi.eval.blackberry.com/mss/PD_pushRequest.

 

i am using an eval account. Why and when do we get this error?

 

Regards,

Annuk

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IOException caught sending message to PPG URL address:

I haven't had any other reports of issues with EVAL at this time.

 

Do you have a firewall enabled on your computer? If so could you test with this disabled?

Do you have another computer that you could use to test Push?

 

The error is fairly general, it means the socket was closed prematurely but does not provide much detail on where or why it is happenig.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Re: IOException caught sending message to PPG URL address:

Hi,

 

I have tried it with two computers. We dont have any firewall issue in our company.

Have deployed the app at two places. both are not working.

 

Regards,

 

Annuk

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IOException caught sending message to PPG URL address:

Hi Annuk,

 

I just sent you a message requesting more details.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Re: IOException caught sending message to PPG URL address:

Hi,

 

I have replied you with the details.

 

Regards,

Annuk

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IOException caught sending message to PPG URL address:

Hi Annuk,

 

Could you try pushing again? The server may be back running. Seems there was an issue affecting some accounts.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Re: IOException caught sending message to PPG URL address:

Hi Garett,

 

The push is  working now. But their seems to be some problem when I  send multiple messages to the push server. I have multiple threads which push data to the push server simultaneously. But I dont receive notifications for them. When i try pushing through one thread I recieve the notification. Why could this be happening?

 

Thanks for your help.

 

Regards,

Annuk

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IOException caught sending message to PPG URL address:

Hi Annuk,

 

Possibly the logic in your app is blocking the read? 

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.