Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
02-01-2012 09:32 AM
I'm using the example sample-push-initiator attached in BPSS, version 22.214.171.124. 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?