12-20-2011 09:51 AM
We're supposed to be deploying a high profile BB app within the next day and we keep getting this error!
The app has been fine until yesterday.
All we added are a batch of images to the project - on one of the tab views.
Then, after compiling and attempting to test on a device via OTA we get notified of an error:
907 Invalid COD
This is most odd since the OTA files are stored locally on a machine and it's been working fine - infact still does if we remove the new images and associated 'simple' HTML code referencing them.
Is this a bug with the SDK compiler and/or Ripple???
WE'RE DESPERATE FOR A SOLUTION!!!
12-20-2011 01:01 PM
Several reasons might couse that error, similar issues has been already resolved.
Please check possible solutions for that error at solved section.
12-20-2011 03:37 PM
I've spent over 16 hours trying to crack this and have therefore searched all of the Blackberry forums and Googled extensively.
Most of those results in that link are related to Java based builds anyway.
What I've narrowed the fault down to is a folder of images.
I have a batch of JPEGs which make up a page - they're from a booklet which we've converted into multiple JPEGs.
If I remove the folder, the app compiles and installs fine. If I add the folder back in, the install process via OTA etc complains of a bad COD file - even the Javaloader says that it's not valid.
So...are there any issues surrounding images?? File sizes? Types or formats?!?!? We have multiple other images working fine.
The folders are named correctly i.e. booklet320/ and the images are all named correctly i.e. bookletpage1.jpeg etc
12-20-2011 04:47 PM
Since it worked without those images, I would recommend testing it with one or two images at the beginning just to check they are loaded and to eliminate memory concern, and then gradually add more.
We suspect this error might be caused by missing file.
12-20-2011 05:06 PM
Thanks again for your speedy response.
I'll try incrementally adding images but, its frustrating since each interation of the app takes about 10 mins to compile, install etc.
Is it common btw for apps to work fine in Ripple but then for OS5 and OS6 devices to render the HTML layout completely differently?? VERY odd and frustrating.
Thanks for your help! I'll report back in an hour or so once I've tested this approach.
I can confirm though that there are no missing images.
12-20-2011 11:06 PM
No missing images.
I wonder if the issue might be to do with how we're referencing the images?
Currently the code might look like this:
But, should it include instead of the relative 'web' type reference the 'local' ref?
Just thought I'd ask...
Also, you mention memory...am assuming that as long as the device has the RAM then the app can be any size??
Currently it's only 8MB with all the images in it and about 5MB without.
12-21-2011 02:11 PM
Are you installing using the JAD file? If so, did you extract the sibling COD files? Your application may not have any sibling COD files when the images are not present. Refer to Cause 5 of this article:
12-21-2011 03:14 PM
I'm using Ripple to compile the app and yes, have tried extracting the COD. I have also tried the standard as well as the OTA installation routes.
But, even using the command line compiler I get the same results.
Javaloader says the COD file produced in the standard install directory isn't a valid COD file too.
I've looked at your referenced link and the issue I'm experiencing isn't the same. I get the message - invalid COD - not invalid JAR because I'm developing with Webworks and not Java so my compiled app is in multiple COD files and a referencing JAD file.
Does that make sense?
At this rate (the app is well overdue it's delivery date) we'll have to ship multiple apps for various devices instead of having one 'intelligent' app which can have all the different sized image assets within it.