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

Java Development

Reply
New Contributor
Posts: 2
Registered: ‎08-10-2010
My Device: All

Error 907 - Invalid COD. Not file size or browser issue.

Hi,

 

I'm having all my customers report that they are getting Error 907 - Invalid COD when they try to download my game.

 

I've browsed for a while and there appear to be 2 reasons why this happens.  However neither fixes my issues.  Can anyone else help?

 

1) Change IE to default browser: 

http://www.berryreporter.com/2010/05/11/how-to-fix-error-907-invalid-cod-on-a-blackberry/.   This does still not fix my issue.

 

2) The file size is larger than 64k.  Doing the math, 64k = 65536 bytes.  So long as I'm within this, I should be fine, right?  My file size is close, but smaller.  Here's the output of my .JAD file:

 

Manifest-Version: 1.0
MIDlet-Version: 1.0
MIDlet-Jar-Size: 52739
MicroEdition-Configuration: CLDC-1.1
MIDlet-Jar-URL: Celeb.jar
RIM-MIDlet-Icon-1-1: src/com/symonperriman/Trivia/CELEB_50.png,focused
RIM-COD-Module-Dependencies: net_rim_cldc
RIM-COD-URL-1: Celeb.cod
RIM-COD-SHA1-1: xxx
RIM-MIDlet-Flags-1: 0
RIM-COD-Module-Name: Celeb
RIM-COD-Size-1: 3652
RIM-COD-Size: 64576
MIDlet-Name: Celeb
RIM-COD-Creation-Time: 1281409865
MIDlet-1: ,,
RIM-COD-URL: Celeb.cod
MIDlet-Description: 300 new questions about celebrities & hollywood for MobileQs trivia
RIM-COD-SHA1: xxx
MicroEdition-Profile: MIDP-2.0
MIDlet-Vendor: MobileQs | FanWide LLC
RIM-MIDlet-Icon-Count-1: 1

 

 

Thanks for any additional suggestions!

Symon
MobileQs

Developer
Posts: 66
Registered: ‎01-14-2010
My Device: 8700
My Carrier: Airtel

Re: Error 907 - Invalid COD. Not file size or browser issue.

[ Edited ]

try to rename your cod file with zip extension and try extracting the files from it, if you see more than one file in your extracts, then there is possibiliy that your jad file does not have proper details.

 

 

Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: Error 907 - Invalid COD. Not file size or browser issue.

 


symonperriman wrote:

RIM-COD-Size-1: 3652
RIM-COD-Size: 64576


I see two cod files here. Try to open your cod with WinZip or WinRar, inside should be two cod files. Unzip those in the same dir as the jad file and you should be ok

 



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
Developer
Posts: 66
Registered: ‎01-14-2010
My Device: 8700
My Carrier: Airtel

Re: Error 907 - Invalid COD. Not file size or browser issue.

correct,

 

I missed that.

 

Generally I follow below approach.

 

1. Rename cod file to zip extension. extract the files from zip

 

2. you see Celeb.cod and Celeb-1.cod

3. rename Celeb.cod to Celeb-0.cod

4. Modify jad file accordingly

 

Highlighted
New Contributor
Posts: 2
Registered: ‎08-10-2010
My Device: All

--FIXED--

Hi everyone,

 

Thank you for your suggestions.  Unfotuantely repackaging/zipping didn't work.

 

I was able to fix the issue by shrinking my 1 file into 2 smaller file which linked to each other.  I was then able to get rid of this problem.

 

BlackBerry simulators do not test for this error with large files.  The information on the BlackBerry site is inaccurate as it says it suports 64KB, when really it suports a little over 63KB. 

 

Thanks,

Symon