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

Web and WebWorks Development

Reply
New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

BBWP - Blackberry Widget file size limit

i'm using BBWP and simulator 9000 with OS 5. I have some problem when compiling my file with BBWP. I have a web page approximately 7MB. and there's error when i use BBWP. but, when i reduce my web, only using the basic files, it works! i've tried several times and i still failed. It only works when the file size is smaller. It seems to me that BBWP has some file size limitation. FYI, i'm using javascript as my static database, which is approximately 5MB. I'm planning to convert it into SQLLite database, but i don't know the database location (_ _!) But, i think even if i can convert my database into SQLLite database, i still can't deny the file size limitations... Is there any way to solve my problems? i'm really stuck here. Thanks before.
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BBWP - Blackberry Widget file size limit

Hi There,

 

I just want to make sure I'm reading your description correctly.  You currently have a 5MB JavaScript file which causes the problem?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

Re: BBWP - Blackberry Widget file size limit

if you take it the other way, yes.

but those files was fundamental for my web.

But the main problem is, how can i surpass the widget limitation?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BBWP - Blackberry Widget file size limit

Can you run the bbwp.exe with the /v command line parameter.  It should give a verbose output on where it is failing.

 

If you could then post up the verbose output from the packager it may give us a better idea of what may need to be adjusted in your widget.

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

Re: BBWP - Blackberry Widget file size limit

Here it goes

 

C:\Blackberry>bbwp mybible.zip /v
[INFO]          Parsing option parameters
[INFO]          Parsing bbwp.properties
[INFO]          Validating zip archive
[INFO]          Parsing config.xml
[INFO]          Validating widget name in config.xml
[INFO]          Validating widget author in config.xml
[INFO]          Validating widget version in config.xml
[INFO]          Validating loadingScreen color in config.xml
[INFO]          Validating widget feature in config.xml
[INFO]          Validating widget start up page in config.xml
[INFO]          Widget packaging starts...
[INFO]          Populating source codes...
[INFO]          Start compiling and building...
java.io.IOException: Cannot run program ""C:\Blackberry\bin\rapc.exe"" (in direc
tory "C:\DOCUME~1\KaI2KId\LOCALS~1\Temp\widgetGen.3017614241267061187421.tmp"):
CreateProcess error=87, The parameter is incorrect
[ERROR]         Error happened when running rapc.exe!

New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

Re: BBWP - Blackberry Widget file size limit

is it possible for me to create an SQLLite database manually? so i can reduce my file size and put it on the database.

one more thing, where is the database located? cause i seems can't find it after searching..

thanks.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BBWP - Blackberry Widget file size limit

The development team ran a series of tests building in many...many.. files of different sizes.  Some exceeding the files sizes you have outlined and we could not reproduce your error.

 

I'm wondering if it may be a file naming issue.  Can you post up the file name that you are using for your JavaScript file?  Or even possibly email us a copy to try and reproduce the error.

 

There isn't the ability to import a pre-created SQLite file onto the file system.  I would likely recommend using XML or another format to describe your database.  A 5MB JavaScript file is going to take a long...long time to load into the browser.

 

Location of the SQLite database file can be found here:

http://www.blackberry.com/developers/docs/widgetapi/google.gears.database.Database.html

 

Also, I would recommend that your users install your application through the desktop manager.  Over the air installation could be quite costly in data fees.

 

One approach you could take, depending on your application's needs, is to pull the information that builds your database as the user needs it.  This is the approach taken in BlackBerry Email.   The entire email isn't sent, just parts of it, and the remainder is retrieved as the user requests it.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

Re: BBWP - Blackberry Widget file size limit

i'm building a bible application.

those JS files listed as "bible_content_0.js" to "bible_content_65.js" which is approximately 5Mb.

is there any problems with the names?

and also, what is the email? i'd like to send you some examples.

 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BBWP - Blackberry Widget file size limit

I will send those file names to the development machine to see if they are the issue.  You can email your files to devsupport@rim.com and they will forward them to the BlackBerry Widget development team

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 6
Registered: ‎02-23-2010
My Device: 9000
My Carrier: 123

Re: BBWP - Blackberry Widget file size limit

just now i have sent an email with those files i meant earlier to the email address you have mentioned above.

thanks before, and please tell me if something happened.