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

Java Development

Reply
Developer
amrishodiq
Posts: 112
Registered: ‎09-23-2009

Push Registration Problem

I wrote a push enabled client app. I use code written by Simon Hain: http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...

 

After some additional code to create UIApplication and Screen to make the sample code works. I create PushAgent() instance after I push the screen. The app flow then bring user to register (automatically when I create PushAgent() instance).

 

Unfortunately, the registration failed. It was said that BPAS server reject the registration. But I think the default code not pretty valid because it's said that it's rejected, but actually the response code is Gateway Timeout. And I think this is related to my previous problem: http://supportforums.blackberry.com/t5/Java-Development/Problem-BIS-connection-with-Amazon-S3/m-p/10...

 

It's pretty weird because registering to BPAS means that BIS-B trying to connect to RIM's server. Why gateway timeout occures?

 

Anyone having the same problem?

 

Here is my log

 

Registering BPAS

Starting to listen for push messages through
'http://:29554;deviceside=false;ConnectionType=secret_string'

Opening: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=1436-1ncc7B00h705iiki69&osversion=6.0.0.4...

RC: 200, RM: OK
Response: param=J%7BH%C5%0C%9D%BC%CF%2B%CBY%91%C9%1Dt%AC%0D%ABp%F0%07%83%2F%CD%B1%9C%DC%1F%1DJ%CAQ%90%7E%F6%F5E%E4%D8%C7%CB%02%AE9%0B%19%5B%94

Next URL: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=1436-1ncc7B00h705iiki69&osversion=6.0.0.4...

RC: 504, RM: Gateway Timeout

Response: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
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>
The following error was encountered:
<UL>
<LI>
<STRONG>
Connection to 68.171.224.59 Failed
</STRONG>
</UL>

<P>
The system returned:
<PRE><I>    (110) Connection timed out</I></PRE>

<P>
The remote host or network may be down.  Please try the request again.
<P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Thu, 26 May 2011 00:03:25 GMT by
Blackberry.Internet.Browsing.Service (squid/2.7.STABLE7)
</ADDRESS>
</BODY></HTML>

BPAS rejected registration. Response: <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
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>
The following error was encountered:
<UL>
<LI>
<STRONG>
Connection to 68.171.224.59 Failed
</STRONG>
</UL>

<P>
The system returned:
<PRE><I>    (110) Connection timed out</I></PRE>

<P>
The remote host or network may be down.  Please try the request again.
<P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Thu, 26 May 2011 00:03:25 GMT by
Blackberry.Internet.Browsing.Service (squid/2.7.STABLE7)
</ADDRESS>
</BODY></HTML>

 

 

 

Please use plain text.
Developer
amrishodiq
Posts: 112
Registered: ‎09-23-2009

Re: Push Registration Problem

Anyone could help?

Please use plain text.
Developer
amrishodiq
Posts: 112
Registered: ‎09-23-2009

Re: Push Registration Problem

I tried to run the application just now, and this automagically responded with 200 OK.

:Clap:

 

No code change needed. Funny.

Please use plain text.