BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-08-2010, 01:37 AM   #1 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default PUSH SDK sample-app, failed to register

Please Login to Remove!

hi,
i have installed the BB push sdk and the sample app.
i run the apps on the device simulator and try to register.
i already ran the mds-cs and tomcat server
(i can access rim website from my simulator browser)
but when i try to register the push i got an error :
Request to register failed. Caused by java.io.IOException:Network Operation [Subscribe] Failed. Make sure the content provider url is accessible.

what is the url for content provider?
Offline  
Old 11-08-2010, 07:03 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

The content provider URL would be for your website. If you're using the API sample server application that would be https://your.system.com:8443/sample-app/

But, I don't think you can regester the simulator to the push service.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 11-08-2010, 08:16 PM   #3 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i tried using my device to register but it got an illegalArgument exception.. can you help me solve this problem?
Offline  
Old 11-08-2010, 09:00 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

You have to go into the settings page and set the port, appid and BPAS URL to the values RIM sent you in the email. You have to set the Content Provider URL to point to the tomcat server running the server side sample programs. Then register, you can use any username, password you want to for your credentials.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 11-09-2010, 02:25 AM   #5 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok.
now i got this following error:

command 'register' failed with error: java.lang.exception :registration with BPAS was rejected by server

here are my setting
port: same as email
app id: same as email
BPAS: h_ttp://pushapi.eval.blackberry.com
content provider url: h_ttps://mydomain.com:8443/pushsdk
app ack: checked

i tried to change BPAS to h_ttps://pushapi.eval.blackberry.com but i got this error Registration with BPAS failed, caused by java.lang.illegalstateException: no application instance

i already double check my app id to the email that RIM send to me..

*i put h_ttp because i still cannot post an URL in this forum
Offline  
Old 11-09-2010, 05:16 PM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

BPAS URL hast to be http not https.

Is your content provider url accessable from the internet? Is it performing the correct functions? You should try with the sample-app provided with the sdk first.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 11-09-2010, 08:46 PM   #7 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

when i check my database, the user who want to register is in there.. but the device still give me the same error..
Offline  
Old 11-10-2010, 08:44 PM   #8 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by hrbuckley View Post
BPAS URL hast to be http not https.

Is your content provider url accessable from the internet? Is it performing the correct functions? You should try with the sample-app provided with the sdk first.
so what is the bpas and the content provider url if i use the sample-app? Thanks
Offline  
Old 11-11-2010, 12:52 AM   #9 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

problem solved..

i extract the sample-app client jar and rebuild the project
i commented the
static {
//#ifdef HANDHELD_VERSION_50
lib = new PushLib50();
//#endif
//#ifndef HANDHELD_VERSION_50
//lib = new PushLib43(); <--- this one
//#endif
}
in the pushlibfactory.java

and using https as my Content URL Provider
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.