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
Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Invalid cod file randomly from Ripple Web Works project

Hi,

 

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???

 

Any advice?!?!?!?!?

 

WE'RE DESPERATE FOR A SOLUTION!!!

Retired
Posts: 34
Registered: ‎10-24-2011
My Device: Curve
My Carrier: Telus

Re: Invalid cod file randomly from Ripple Web Works project

Several reasons might couse that error, similar issues has been already resolved.

Please check possible solutions for that error at solved section.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

Hi,

 

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

 

Any ideas?!?!?!?!?!

Retired
Posts: 34
Registered: ‎10-24-2011
My Device: Curve
My Carrier: Telus

Re: Invalid cod file randomly from Ripple Web Works project

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.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

Hi,

 

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.

Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

Hi,

 

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:

src="images/bookletLarge/booklet480/Booklet_1.jpg"

 

But, should it include instead of the relative 'web' type reference the 'local' ref?

e.g.:

local:///src="images/bookletLarge/booklet480/Booklet_1.jpg"

 

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.

 

Thanks!

Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

any ideas anyone??

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Invalid cod file randomly from Ripple Web Works project

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:

 

http://supportforums.blackberry.com/t5/Testing-and-Deployment/907-Invalid-Jar-Error-when-installing-...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

Hi,

 

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.

Regular Contributor
Posts: 66
Registered: ‎09-10-2011
My Device: Playbook, Curve 9300, HTC Desire HD and iPhone 4
My Carrier: O2

Re: Invalid cod file randomly from Ripple Web Works project

Oh, and I'm now using the latest Ripple version and latest webworks SDK