05-12-2010 10:15 AM
i have a client blackberry app which makes use of the client sample code... it registers and then receives push messages... it all works
but if i am not on wifi, only connected via the provider.. then the registering returns rc=10001 errorr which resutls in an exception .
it uses the following url to register;
4412:[ERROR]-Could not register for push messages: java.io.IOException: BPAS server rejected registration. Details: response code - rc=10001
where are these error code documented.. in the source i can only see the following;
private static final String REGISTER_SUCCESSFUL = "rc=200";
private static final String DEREGISTER_SUCCESSFUL = REGISTER_SUCCESSFUL;
private static final String USER_ALREADY_SUBSCRIBED = "rc=10003";
private static final String ALREADY_UNSUSCRIBED_BY_USER = "rc=10004";
private static final String ALREADY_UNSUSCRIBED_BY_PROVIDER = "rc=10005";
Solved! Go to Solution.
05-12-2010 02:44 PM
Go to Options, Advanced Options, Browser, change the default browser to Internet Browser and try to browse somewhere. Are you able to? If not, please check with your service provider to verify that you have access to the BlackBerry Internet Service.
05-12-2010 02:58 PM
The question was: what does this error code mean?
From your reaction i think it is: No sim installed / Sim does not have a BIS subscription.
Is that true?
I got the error rc=10001 also when i had no simcard installed.
However with a simcard with BIS it works as follows:
wifi & 3g -> subscribe work, push works
wifi & 3g -> subscribe works, then after i disable wifi, push still works
only 3g -> registration returns 10001 error code
05-13-2010 10:15 AM
It sounds like an account configuration or service book issue. On the BlackBerry Smartphone go to Options, Advanced Options, Service Book and verify that you have an entry called "Blackberry Internet Browsing Service" or "BIS-B". This service record may be missing or invalid.
You can send this service record to yourself by logging into your BlackBerry Internet Service account and pressing the "Send Service Books" button found under Help.
05-14-2010 05:10 AM
You still havent anwsered this question:
what does the error rc=10001 mean.. I mean... my application should handle it nicely. If the server returns rc=10001 then i have to know what that means.
I will look into your suggested solution. But again. please give me a textual description of error rc=10001.
Thanks for your help. It is greatly appreciated.
05-14-2010 09:51 AM
The 1001 error is caused when the BlackBerry PIN is missing from the HTTP header of the subscription request. This is typically caused by a missing or invalid BlackBerry Internet Service Browsing service book, which causes the request to be sent over a different transport route.
05-17-2010 04:52 AM
Hmm i think i stated the problem in correctly.
It works when on 3G but it doesnt work when on WIFI.
Wifi gives me the rx=10001 code.
I checked and i do have the Blackberry Internet Browsing Service in the Service Book. Internet browsing also works fine.
Again the strange thing is: It works fine under 3G... on WIFI it does not. Is it possible that a proxy mangles the request?
06-16-2010 03:13 AM
I get the same problem. It returns 403 when I call the URL. but it returns param=xxxxxx when I call the URL manually using the internet browser in my device (not simulator)
06-16-2010 04:07 AM - edited 06-16-2010 04:11 AM
You cannot register over WiFi by just calling the registration method.
When not using blackberry.net tunnel you have to emulate all headers implicitly set by blackberry.net.
It's theory since I haven't tried yet ...
But even if you get your device registered I doubt you will get any pushes over WiFi ...
As far as I know, there is no way to user the blackberry.net tunnel over WiFi.
06-16-2010 11:08 AM
The registration should be routed over the BlackBerry Internet Service and not sent directly over WiFi.
However, note that BlackBerry Smartphones can automatically route BlackBerry Enterprise Server and BlackBerry Internet Service traffic over a WiFi connection. This would look the same to your application as when the connection was made over a cellular network. This concept is referred to as least cost routing and is explained in more detail in the following videos.
Network Transports II