Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development


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.


Reply
Contributor
Posts: 17
Registered: ‎07-24-2011
My Device: Bold 8520
My Carrier: Digicel

Push SDK using low level API

I am using the following post as a guide - http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-SDK-using-low-level-APIs/td-....

 

The class Push.java compiles OK.  But when I try to run it, I am getting the following error:

 

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key use.public.push
        at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
        at java.util.ResourceBundle.getString(ResourceBundle.java:334)
        at net.rim.pushsdk.commons.DefaultPropertyStore.getProperty(DefaultPropertyStore.java:62)
        at net.rim.pushsdk.commons.PropertyStore.getBooleanProperty(PropertyStore.java:90)
        at net.rim.pushsdk.commons.PushSDKPropertiesImpl.isUsingPublicPush(PushSDKPropertiesImpl.java:345)
        at net.rim.pushsdk.pap.control.PapControl.isUsingPublicPush(PapControl.java:176)
        at net.rim.pushsdk.pap.PapServiceImpl.push(PapServiceImpl.java:90)
        at Push.main(Push.java:46)
nattyp@arya:~/projects/push/test$

 My directoy listing is

drwxr-xr-x 3 nattyp nattyp  4096 Aug 25  2007 org
drwxr-xr-x 3 nattyp nattyp  4096 Apr 29  2011 net
-rw-r--r-- 1 nattyp nattyp 12614 Jun 22 11:07 PushSDK.properties
-rw-r--r-- 1 nattyp nattyp   741 Jun 22 11:07 pushsdk-pap-context.xml
-rw-r--r-- 1 nattyp nattyp  1472 Jun 22 11:07 pushsdk-commons-context.xml
-rw-r--r-- 1 nattyp nattyp  8483 Jun 22 11:07 pap_2.1.dtd
-rw-r--r-- 1 nattyp nattyp  8417 Jun 22 11:07 pap_2.0.dtd
-rw-r--r-- 1 nattyp nattyp  2260 Jun 22 11:07 log4j.xml
-rw-r--r-- 1 nattyp nattyp  2646 Jun 22 12:17 Push.class
-rw-r--r-- 1 nattyp nattyp  2257 Jun 22 12:28 Push.java

 The org and net directories are the jar extract from pap-1.1.0.16.jar and commons-pushsdk-1.1.0.16.jar.

 

What am I missing?

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Push SDK using low level API

The PushSDK.properties file from the commons jar must be in your classpath

Highlighted
New Member
Posts: 1
Registered: ‎11-16-2012
My Device: 9800
My Carrier: TELCEL

Re: Push SDK using low level API

In the file PushSDK.properties uncomment

 

use.public.push=true

or

use.public.push=false