02-06-2011 08:30 PM
I recently installed the latest SDK (Webworks) and since then every 3 or 4 times of running a project I get the following error message:
Invalid application archive - resource name is not valid(.tmp_index.html.36710~)
To get around this I have to delete my project from eclipse, restart eclipse and then reimport my project again. But after 3 or 4 times of running the app on a simulator I get the error again. This was not happening with the previous version of the SDK. Also, I already made sure that all resources have just alphanumeric (including underscore) characters in their names, but this is still happening.
Any ideas or suggestions on how to resolve this?
Thanks for your help.
02-06-2011 10:25 PM
The current builds of the WebWorks SDK do not allow resources with underscores or dashes in their file names.
It allows letters numbers and "." characters. We will be allowing dashes and underscores in an upcoming build.
The reasoning behind it goes into a ton of details about the various different command line packaging tools, compilers and underlying technologies that all have different rules around the use of special characters.
We removed all special character support and then will be adding back in special characters that will work as the use case arrises.
02-07-2011 08:40 AM
Thanks for the fast response tneil.
Is there a timeline for a new version that will accept underscores?
Or, can we go back to the old SDK, build the app and still be approved in AppWorld?
02-07-2011 09:21 AM
I do not have an exact timeline for when this change will make it into a build and be released. We will be having a series of builds and releases available soon. If I were to give you a date right now it may not come true.. we are working out the release schedule and what will be included in each release.
02-12-2011 05:42 PM
Thanks Tim, and I have used files with underscores and had no errors. I would like the hyphen charachter to be allowed still the same.
Works fine in WebWorks and OS 5, but does nothing in OS 6
I really could use this functionality!!
02-14-2011 06:12 PM
I get this error when I use the Eclipse plugin to run the BlackBerry WebWorks Packager (bbwp). I'm not sure why, but it creates the tmp files before zipping up the project; then bbwp complains with this error.
To work around this, I shell out and remove the offending files from the zip file. Then run bbwp on the project's zip file and all is well.
The WebWorks plugin is version: 188.8.131.52010291444-2
The WebWorks SDK is version: 184.108.40.206010291444-22
02-16-2011 09:24 AM
You mentioned that it is supposed to accept numbers and ".", but I can't use either.
I just added the following files to my WebWorks application without any packager errors:
Can you specify your file names and the error you are receiving?
02-17-2011 09:30 AM
As part of the project name in Eclipse, if I name the project "011.net" for instance, and the compressed package ends up as "011.net.zip" before it is touched by bbwp. I receive the following:
cmd.exe /c bbwp C:\Documents and Settings\User\Workspace\011.net\build\011.net.zip /o C:\Documents and Settings\User\Workspace\011.net\build
[INFO] Parsing command line options
[ERROR] Invalid application archive - archive name is not valid
BUILD EXITED WITH 1 ERROR
It isn't a resource name being invalid, but the archive name itself. I am a bit confused, as I thought I have named projects like this in the past.
02-17-2011 09:33 AM
Ah... project naming...
There are specific rules around module naming on a BlackBerry Smartphone. In your Project name, which ends up being used as the zip file name, which ends up being the installed file name we do have limits on characters that can be used. I don't believe you can have "."'s in your project name.