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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
satishb
Posts: 5
Registered: ‎07-24-2009
Accepted Solution

907 Invalid COD

[ Edited ]

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/livelink.exe/fetch/2000/348583/800708/800646/Support... but none of them apply to me

 

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. 

Message Edited by satishb on 07-26-2009 10:57 PM
Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008

Re: 907 Invalid COD

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.

 

Please use plain text.
New Developer
satishb
Posts: 5
Registered: ‎07-24-2009

Re: 907 Invalid COD

[ Edited ]

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"

Message Edited by satishb on 07-26-2009 10:58 PM
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008

Re: 907 Invalid COD

Is all the attributes on the JAD are correct.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
mantaker
Posts: 1,477
Registered: ‎12-30-2008

Re: 907 Invalid COD

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! 

 

Cheers.. 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Please use plain text.
New Developer
satishb
Posts: 5
Registered: ‎07-24-2009

Re: 907 Invalid COD

I was able to figure out the reason. Having absolute URLs for RIM-COD-URL-xx instead of relative URLs seemed to have fixed the problem. For some reason having relative URL was causing a problem.
Please use plain text.
New Developer
julysnow
Posts: 2
Registered: ‎12-11-2009
My Carrier: Rogers

Re: 907 Invalid COD

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.

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008

Re: 907 Invalid COD

Please do not post new mesages in Solved threads.

 

Please use plain text.
Contributor
sanath33
Posts: 40
Registered: ‎08-17-2011
My Carrier: Any

Re: 907 Invalid COD

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?

Thanks for your support...........
Please use plain text.