07-26-2009 11:04 PM - edited 07-27-2009 01:57 AM
I am trying to install an application on the blacberry 8900 but I end up getting "907 Invalid COD". I went through the common causes at http://www.blackberry.com/knowledgecenterpublic/li
1. Built using Netbeans which automatically puts in all the attributes. Signed using a verisign code signing cert.
2. Got the COD file which was then signed using Blackberry key signing tools.
3. Final file size of COD is 686KB. There are 10 other cod files inside this parent COD.
4. Uploaded the parent COD (686 KB) to the web server
5. Download the file by pointing Blackberry 8900 to the jad ( I double/triple/quadraple checked I uploaded the right jad)
6. The jad downloads correctly to the phone. Then I am shown a dialog by the phone asking me to download the 686 K file. I click the "Download" button
7. The blackberry handheld then stops to think a bit...does something...I don't know what. Won't even start the progress bar indicator (however, I see a hit to the webserver asking for the parent jad only. No child COD files are requested from the app server logs).
8. There isn't any problem with the webserver as far as mime types go because the webserver can serve other COD files for other phones (8330 for example) without a problem.
9. I am NOT using the WAP browser to download. I am using the regular BB browser.
10. I also tried side loading through the USB cable. But I get the same error...however, with sideloading, I get a little bit more information. While OTA just says "907 Invalid COD". If I store the COD and the jad on the SD card and try to load it from there, I get "907 invalid cod unable to import zip file". That was weird.
11. Next I try to unzip the parent COD, take all the 10 child COD files and put the 10 files along with the jad file on the SD card. Then I try to install it from the SD card. Now I get "907 invalid cod file not found".
I am confounded as to what can cause this problem. What more can I do to get past this problem? Any help would be much appreciated. Has anyone else experienced similar problems? Is it the file size, it is the carrier, is it the phone, is it the browser...I am lost.
Solved! Go to Solution.
07-26-2009 11:51 PM
To deploy a large COD file like that, you have to first extract the individual COD files.
Copy this aggregate code file to the ".zip" extension, then extract the discreet files.
All of these files must be placed on your server with the JAD file.
07-27-2009 12:42 AM - edited 07-27-2009 01:58 AM
Thanks RexDoug. We do something similar but on the fly. So if the request comes in for cod-1, we unzip the parent cod and stream the cod-1 out of it back to the phone. We have somewhat similar size files that work on other Blackberrys (like 8330). For example, for the 8330 because of it's smaller screen size, we have one parent and 7 child COD files. Works allright and downloads/installs allright on the 8330 without problems. For the 8900 because of it's higher screen resolution, we have 1 parent COD and 10 child cod files inside it. However,the phone asks for the jad, we give it and after that it shows information about the download, we click the download button and the phone thinks for a moment and says "907 Invalid COD"
07-27-2009 04:06 AM
Invalid cod file occurs when the sibblings are not being extracted.. Double check with the server and see if the extraction mechanisms are working..
Check if the whole parent cod file is given as a response/download? If so, it isn't right!
07-27-2009 01:30 PM
12-11-2009 07:03 PM
On my Tour, when this happens I just remove existing version first. Re-download would work. The drawback for this approach is that my application lost stored data. Fortunately, in my case, that is not an issue.
09-07-2011 07:08 AM
Can any one please specify How to give absolute URL like my applicaiton's jad file is present in /home/device/user/downloads folder then please specify how to give absolute url?