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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Push Development

Reply
Regular Contributor
jkoorts
Posts: 71
Registered: ‎03-18-2009

Push registration stopped working (after working fine)

HI,

The following url:

 

private static final String mdsstr = "mds-";

private static final String publicstr = "public";
private static final String BBP_SERVER = "http://pushapi.eval.blackberry.com";
private static final String REGISTER_URL = BBP_SERVER
+ "/mss/PD_subReg?serviceid=" + APP_ID
+ "&osversion=" + Client.getDeviceSoftwareVersion()
+ "&model=" + DeviceInfo.getDeviceName()
+ ";ConnectionType=" + mdsstr + publicstr + ";deviceside=false";

 

give me the error:

 

 Internal Server Error http://pushapi.eval.blackberry.com/mss/PD_subReg?osversion=6.0.0.570&model=9780&<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
 /*
 Stylesheet for Squid Error pages
 Adapted from design by Free CSS Templates
 http://www.freecsstemplates.org
 Released for free under a Creative Commons Attribution 2.5 License
*/

/* Page basics */
* {
       font-family: verdana, sans-serif;
}

html body {
       margin: 0;
       padding: 0;
       background: #efefef;
       font-size: 12px;
       color: #1e1e1e;
}

/* Page displayed title area */
#titles {
       margin-left: 15px;
       padding: 10px;
       padding-left: 100px;
       background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left;
}

/* initial title */
#titles h1 {
       color: #000000;
}
#titles h2 {
       color: #000000;
}

/* special event: FTP success page titles */
#titles ftpsuccess {
       background-color:#00ff00;
       width:100%;
}

/* Page displayed body content area */
#content {
       padding: 10px;
       background: #ffffff;
}

/* General text */
p {
}

/* error brief description */
#error p {
}

/* some data which may have caused the problem */
#data {
}

/* the error message received from the system or other software */
#sysmsg {
}

pre {
   font-family:sans-serif;
}

/* special event: FTP / Gopher directory listing */
#dirmsg {
   font-family: courier;
   color: black;
   font-size: 10pt;
}
#dirlisting {
   margin-left: 2%;
   margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
   border-bottom: groove;
}
#dirlisting td.size {
   width: 50px;
   text-align: right;
   padding-right: 5px;
}

/* horizontal lines */
hr {
       margin: 0;
}

/* page displayed footer area */
#footer {
       font-size: 9px;
       padding-left: 10px;
}


body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
:lang(he) { direction: rtl; float: right; }
 --></style>
</head><body id=ERR_ZERO_SIZE_OBJECT>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>

<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://pushapi.eval.blackberry.com/mss/PD_subReg?">http://pushapi.eval.blackberry.com/mss/PD_subReg?</a></p>

<blockquote id="error">
<p><b>Zero Sized Reply</b></p>
</blockquote>

<p>Squid did not receive any data for this request.</p>

<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_ZERO_SIZE_OBJECT&amp;body=CacheHost%3A%20pmds228%0D%0AErrPage%3A%20ERR_ZERO_SIZE_OBJECT%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Fri,%2027%20Jan%202012%2015%3A42%3A52%20GMT%0D%0A%0D%0AClientIP%3A%20127.0.0.1%0D%0AServerIP%3A%2068.171.224.59%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fmss%2FPD_subReg%3Fserviceid%3D1905-2s4ro448De15el8rO7%26osversion%3D6.0.0.570%26model%3D9780%20HTTP%2F1.1%0ARim-device-guid%3A%20GPMDSEU01%0D%0AHost%3A%20pushapi.eval.blackberry.com%0D%0ARim-device-id%3A%2027b2e773%0D%0AVia%3A%20BISB_3.5.1.87%0D%0AAccept%3A%20*%2F*%0D%0AConnection%3A%20close%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
<br>
</div>

<hr>
<div id="footer">
<p>Generated Fri, 27 Jan 2012 15:42:52 GMT by pmds228 (squid/3.1.16)</p>
<!-- ERR_ZERO_SIZE_OBJECT -->
</div>
</body></html>

 

Please use plain text.
Regular Contributor
jkoorts
Posts: 71
Registered: ‎03-18-2009

Re: Push registration stopped working (after working fine)

the HTTP call I make is:

 

 encryptedData = connectAndRead(REGISTER_URL);

  final String encryptedParam = new String(encryptedData);

 

It looks like encryptedParam results in that massive HTTP dump.

 

I checked the status of our account and it shows it was active

Please use plain text.
Regular Contributor
jkoorts
Posts: 71
Registered: ‎03-18-2009

Re: Push registration stopped working (after working fine)

connectandread() looks like this:

 

public static byte[] connectAndRead(String url) throws IOException {
HttpConnection httpConn = (HttpConnection) Connector.open(url);
DataInputStream dis = httpConn.openDataInputStream();

byte[] arr = new byte[CHUNK_SIZE];
int len;
DataBuffer buffer = new DataBuffer();
while ((len = dis.read(arr)) != -1) {
buffer.write(arr, 0, len);
}

dis.close();
return buffer.getArray();
}

Please use plain text.
Regular Contributor
gunar_dev
Posts: 57
Registered: ‎09-22-2010

Re: Push registration stopped working (after working fine)

Hi! Did you have any chance in registering the app using above link? I have opened a separate thread on a similar issue.

Please use plain text.
Regular Contributor
jkoorts
Posts: 71
Registered: ‎03-18-2009

Re: Push registration stopped working (after working fine)

yes solved. the issue was not code. It was canada. like in rim. They're still trying to solve it....

Please use plain text.
Regular Contributor
gunar_dev
Posts: 57
Registered: ‎09-22-2010

Re: Push registration stopped working (after working fine)

That explains it ... I gave up trying to register from device. I am following the pattern they have shiped in the samples, but I am getting STATUS_FAILED with null error message ... Registered in an evaluation program and so on.

 

Do they happen to have some customer support or anything like that? because they are simply not responding to emails sent to BlackBerry Push Services <BlackBerryPushServices@rim.com>.

Please use plain text.
Regular Contributor
jkoorts
Posts: 71
Registered: ‎03-18-2009

Re: Push registration stopped working (after working fine)

Nobody knows if they have customer support.

 

We had a UK woman flew down to us in South Africa (she represents Africa), and she admitted that there is a huge problem at RIM when it comes to customer support to allianses. Our representative here in SA was totally useless. Emails bounce all over the place at RIM and some get replied to with "sorry this is not my responsibility. Try the guy next door".

 

Apparently RIM's one main goal is to get their **bleep** together this year regarding this push stuff. 

 

Did you know they dont even have a pricing model for the paid push package!

 

Good luck in getting this sorted mate. What helped for us so far to get the main peanut's boss's boss's boss'....

Please use plain text.