BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-08-2010, 02:37 AM   #1
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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, 08:03 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 09:16 PM   #3
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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, 10:00 PM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 03:25 AM   #5
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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, 06:16 PM   #6
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 09:46 PM   #7
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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, 09:44 PM   #8
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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, 01:52 AM   #9
zhuben
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: XL
Posts: 9
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


APPLE 630-0895-B  VRAM 128K X 8 BOARD CARD VINTAGE picture

APPLE 630-0895-B VRAM 128K X 8 BOARD CARD VINTAGE

$74.77



APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD  picture

APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD

$149.99



128K RAM - APPLE - ORIGINAL APPLE prototype BOARD picture

128K RAM - APPLE - ORIGINAL APPLE prototype BOARD

$408.75







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