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
Developer
greenback
Posts: 448
Registered: ‎10-17-2010
Accepted Solution

BB10 WebWorks Debug Error - Please enter a valid application id

Need help resolving a BB10 WebWorks issue when debuging.


Packaging Error Question
 

From the command line I ran the standard packaging command

 

bbwp [location of project].zip -d -o [locationofoutput]

 

Resulting in:
 

[INFO]       Populating application source
[INFO]       Parsing config.xml
[INFO]       Error: Please enter a valid application id

 

Here's my config.xml file, I am actually building from the bbUI.js sample

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.2">
  <name>App name</name>
  <description>A sample description</description>
  <author>My Name</author>
  <icon src="images\icon.png" />
  <icon src="images\icon.png" rim:hover="true" />
  <rim:loadingScreen backgroundImage="images\background.png" foregroundImage="images\hippo.png" onFirstLaunch="true">
    <rim:transitionEffect type="fadeIn" />
  </rim:loadingScreen>
  <content src="index.htm" />
  <access uri="http://chart.apis.google.com" subdomains="true" />
  <feature id="blackberry.push" />
  <feature id="blackberry.message.sms" />
  <feature id="blackberry.ui.menu" />
  <feature id="blackberry.ui.dialog"/>
  <feature id="blackberry.identity" />
  <feature id="blackberry.system.event" />
  <feature id="blackberry.app" />
  <feature id="blackberry.app.event"/>
</widget>

 
bbwp.properties & debug token question 
 

Also... I know that in the previous WebWorks SDKs, you edit bbwp.properties and add a line that points to the location of your debug token.

Question:

  • Where is the bbwp.properties file in the new SDK? Where do I specify my debug token location?


Thanks!

Please use plain text.
Administrator
astanley
Posts: 1,127
Registered: ‎07-02-2009
My Carrier: Bell

Re: BB10 WebWorks Debug Error - Please enter a valid application id

Hello,

 

The id is an alphanumeric property of the main <widget> element.  It cannot contain spaces or 

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.2" id="yourIDhere">

 

You do not need to modify the bbwp.properties file.  The Debug token documentation specifies where to set the debug token file.  To enable debug token support, simply build your app with the -d flag.

 

Hope that helps!

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.

Watch the BlackBerry Jam Americas Sessions.
Please use plain text.
Developer
greenback
Posts: 448
Registered: ‎10-17-2010

Re: BB10 WebWorks Debug Error - Please enter a valid application id

Thank you Adam!

 

Seems I needed to rename my debug token to debugtoken.bar and move it to the root of the BlackBerry 10 WebWorks SDK directory.

Used the same -d flag command

 

Worked without having to edit bbwp.properties.

 

Please use plain text.
Regular Contributor
superfly_fr
Posts: 51
Registered: ‎12-23-2011
My Carrier: SFR

Re: BB10 WebWorks Debug Error - Please enter a valid application id

[ Edited ]

For Ripple BB10 beta (chrome extension) users (but may apply to others as well).

 

Found in http://saplin.blogspot.fr/2012/05/ripple-bb-10-web-works-and-please-enter.html (go there for captures, etc)

 

Possible causes for the error:

  1. Missing id tag (in the config.xml <widget>) [clearly the case in OP config.xml]
  2. White spaces in id tag value (registered issue)

Looks like the webworks samples hasn't been updated (or maybe it's to prevent massive submissions with the same id ?). Anyhow, this should be documented ...

Please use plain text.