02-01-2012 09:32 AM
I'm using the example sample-push-initiator attached in BPSS, version 188.8.131.52. In fact, it had worked well before. I mean that I could send a message of Push from the servlet (sample-push-initiator) to the a real device Blackberry, and of course I then received it on the mobile phone BB. But, I don't understand what happens. Now, the servlet doesn't work.
When using a BB device to register to server Blackberry, I received a failed message: java.lang.Exception: Registration with Push API failed, caused by java.lang.IllegalStateException: no application instance.
In addition, when clicking on the button "Start General Push" of the servlet (sample-push-initiator), I received a message: Failed for: [(Id: push_all, Code: 2000)]. Could someone have any idea to solve my case?
Thanks in advance
02-03-2012 07:39 PM
I am not sure why you are getting the first error on the device:
java.lang.Exception: Registration with Push API failed, caused by java.lang.IllegalStateException: no application instance.
The second one is probably because there are no active subscriptions?
Failed for: [(Id: push_all, Code: 2000)].
02-06-2012 03:19 AM
Thank you for your response. I've found out that there is a problem with the mobile operator by which I use the Internet service 3G. When I tested with a well-working mobile operator, it was OK.
Definitely, the second one relates to that there are no active subscriptions.
08-05-2012 07:46 PM
08-06-2012 02:57 AM
The example works as the following:
- there are two parts: one is server (servlet), one is a mobile application (on BlackBerry).
- the mobile application needs to access to the servlet so that the application can register information about BlackBerry device such as PIN, ... That's why they said that the server needed to be accessible from the Internet.
08-06-2012 03:11 AM
You need to deploy your servlet on a server which can be accessible from the Internet. I have no idea about that, since I don't know anything about the network in your company.
If your company doesn't have any server which can be accessible from the Internet, you have to buy a host which supports Java, tomcat, ... Otherwise, you only can test mobile application on a simulator.
08-06-2012 03:38 AM
08-06-2012 03:43 AM
I'm not quite sure whether they support other languages. For us, we directly use examples given by RIM, since we already have servers running Java, tomcat.
08-14-2012 09:53 AM
@lawillas - You can develop your server-side application is any language. It doesn't have to be Java. If you want to use the server-side push libraries then you do have to use Java but this is not a requirement.
It is strongly recommended that you have a server side application that is publically/external accessible via the internet. This is so the devices downloading/installing your application can subscribe with your server. If there is no subscription to your server how will you know who to push to?