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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
Tuckjet
Posts: 3
Registered: ‎03-08-2011

Trouble packaging with BBWP - config.xml

[ Edited ]

 

Hello all,
I'm new to the Webworks platform. 
I am trying to package my application and I keep gettting errors during the packaging process.
output is as follows:
[INFO]       Parsing command line options
[INFO]       Parsing bbwp.properties
[INFO]       Validating WebWorks archive
[INFO]       Parsing config.xml 
Exception in thread "main" java.lang.NullPointerException
at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at net.rim.tumbler.log.Logger.logMessage(Unknown Source)
at net.rim.tumbler.WidgetPackager.go(Unknown Source)
at net.rim.tumbler.WidgetPackager.main(Unknown Source)
I believe my error lies within my config.xml file, but am unsure.
It may look bad. I've been hacking it apart, trying to make it package.
config.xml:
<?xml version="1.0" encoding="utf-8"?>
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0">
<name>Playbook Tuner</name>
<description>
A tuner to audibly tune your guitar for standard tuning.
</description>
<icon src="appIcon.png"/>
<content src="index.html"/>
<author href="http://www.about.me/MarkTuck" email="tuckjet@gmail.com"/>
<license>
    Copyright (c) 2011 Mark Tuck
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</license>
<rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256"/>
<access uri="http://www.twitter.com" subdomains="true"/>
<access uri="http://www.about.me.com" subdomains="true"/>
<access uri="http://www.facebook.com" subdomains="true"/>
</widget>
Any help would be appreciated.
Thanks!"

 

Edit: Formatting may also be compromised because forum wouldn't accept widget entry as I posted it.

Please use plain text.
Developer
tags07
Posts: 386
Registered: ‎12-12-2010
My Carrier: Sprint

Re: Trouble packaging with BBWP - config.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" 
        xmlns:rim="http://www.blackberry.com/ns/widgets" 
        version="2.2.0" 
        rim:header="RIM-Widget:rim/widget">
  <name>MyApp</name>
  <description>This is my app..</description>
  <author rim:copyright="My Company Inc, 2011">My Company Inc.</author>
  <icon rim:hover="false" src="icon.png"/>
  <icon rim:hover="true" src="icon.png"/>
  <content src="index.html"/>
</widget>

 

This is what I have. Really simple. Try to build with bare minimal..ofcourse add the access uri etc..

 

Please use plain text.
New Contributor
Tuckjet
Posts: 3
Registered: ‎03-08-2011

Re: Trouble packaging with BBWP - config.xml

[ Edited ]

Thanks for the response, but still no luck. Same output on BBWP. 

 

config.xml:

<?xml version="1.0" encoding="UTF-8"?>

<widget xmlns="http://www.w3.org/ns/widgets

        xmlns:rim="http://www.blackberry.com/ns/widgets

        version="2.2.0" 

        rim:header="RIM-Widget:rim/widget">

  <name>Playbook Tuner</name>

  <description>A tuner to audibly tune guitar for standard tuning.</description>

  <author rim:copyright="Mark Tuck, 2011">Mark Tuck</author>

  <icon rim:hover="false" src="appIcon.png"/>

  <icon rim:hover="true" src="iconApp.png"/>

  <content src="index.html"/>

  <access uri="http://www.facebook.com" subdomain="true"/>

  <access uri="http://www.twitter.com" subdomain="true"/>

  <access uri="http://www.about.me subdomain="true"/>

</widget>

 

 

output:

 

[INFO]       Parsing command line options
[INFO]       Parsing bbwp.properties
[INFO]       Validating WebWorks archive
[INFO]       Parsing config.xml 
Exception in thread "main" java.lang.NullPointerException
 at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
 at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
 at java.util.ResourceBundle.getString(ResourceBundle.java:334)
 at net.rim.tumbler.log.Logger.logMessage(Unknown Source)
 at net.rim.tumbler.WidgetPackager.go(Unknown Source)
 at net.rim.tumbler.WidgetPackager.main(Unknown Source)

 

Please use plain text.
Developer
tags07
Posts: 386
Registered: ‎12-12-2010
My Carrier: Sprint

Re: Trouble packaging with BBWP - config.xml

What version of Java do you have.. i think u need 2.6 and above. I cant think of anything else..

 

BTW, you are missinh a close quote in your last uri...not sure if thats a typo or if the forum formatting issue.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
My Carrier: Rogers

Re: Trouble packaging with BBWP - config.xml

Which zip utility are you using to archive your app?

 

Is your config.xml file at the root of the archive?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
jeevantakhar
Posts: 33
Registered: ‎03-04-2011

Re: Trouble packaging with BBWP - config.xml

What happens if you use the exact XML tags07 posted?

Please use plain text.
New Contributor
Tuckjet
Posts: 3
Registered: ‎03-08-2011

Re: Trouble packaging with BBWP - config.xml

Sorry it's been such a long time but school was grabbing my attention.

 

I used the XML Code that tags07 posted and this is what happened.

 

 

user$ java -jar  bbwp.jar /Users/user/Desktop/Playbook\ Tuner/Archive.zip 
[INFO]       Parsing command line options
[INFO]       Parsing bbwp.properties
[INFO]       Validating WebWorks archive
[INFO]       Parsing config.xml 
Exception in thread "main" java.lang.NullPointerException
 at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
 at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
 at java.util.ResourceBundle.getString(ResourceBundle.java:334)
 at net.rim.tumbler.log.Logger.logMessage(Unknown Source)
 at net.rim.tumbler.WidgetPackager.go(Unknown Source)
 at net.rim.tumbler.WidgetPackager.main(Unknown Source)

 

 

Thanks.

 

Please use plain text.