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
Contributor
Ne0macer
Posts: 13
Registered: ‎06-11-2013
My Device: Blackberry 9300
Accepted Solution

Keep getting the error "Downlaod failed 907 Invalid COD File not found"

Hi there

 

So I created an app for Blackberry and it works 100% in the simulator.. But when I try to copy the app over to my physical device and install it using the .jad, I get the error  "Downlaod failed 907 Invalid COD File not found" every time.. It doesn't want to install. But when I use the Blackberry app "Rock FIle Manager" and use its COD installer feauture the app installs fine.. Also, when I use the program "Create-A-JAD" to create a .jad file from the .cod file, and then replace the build .jad with the Create-A-JAD one and then install the app, it works..

 

I have used the SDK 6 and my physical device is a Blackberry 9300 which is runnin OS6. My app is signed.. Here is a link to a image that shows proof the app is signed... http://www.freeimagehosting.net/ytoge

 

What could be the problem for it not installing?

 

Many thanks! :smileyhappy:

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

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

as the created jad works i would suggest to compare it with the original one, for example with notepad++.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Ne0macer
Posts: 13
Registered: ‎06-11-2013
My Device: Blackberry 9300

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

Okay so I compared the created .jad with the build .jad, and there is a huge difference between the two.. Here is what it looks like .

 

Created .jad:

 

MIDlet-Name: Lyric_Lord
MIDlet-Version: 1.0.0
MIDlet-Vendor: Vendor Name
MIDlet-Description:
RIM-COD-URL-1: Lyric_Lord.cod
RIM-COD-Size-1: 301310

 

And here is the build .jad:

Manifest-Version: 1.0
MIDlet-Version: 1.0.0
MIDlet-Jar-Size: 478584
RIM-COD-URL-5: Lyric_Lord-5.cod
RIM-COD-SHA1-5: 9f 17 56 9f 8b fd 33 bb 41 d4 37 25 af 0c 13 8d a4 53 2c e6
RIM-COD-URL-4: Lyric_Lord-4.cod
RIM-COD-SHA1-4: d8 6e 39 c6 1d f3 ad 78 45 33 cf 64 58 14 ba 12 43 38 0e e8
RIM-COD-URL-3: Lyric_Lord-3.cod
RIM-COD-SHA1-3: 9a df 2d 42 9b 88 89 12 db e0 51 43 55 12 12 69 77 b2 05 1b
RIM-COD-URL-2: Lyric_Lord-2.cod
MicroEdition-Configuration: CLDC-1.1
MIDlet-Jar-URL: Lyric Lord.jar
RIM-MIDlet-Icon-1-1: img/cooltext10510034391.png,focused
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_crypto,net_rim_os,net_rim_bbapi_phone,net_rim_bb_browser_field2_api,net_rim_bb_browser_field_api,net_rim_xml_org,net_rim_bbapi_invoke,net_rim_pdap,net_rim_bbapi_browser
RIM-COD-Size-5: 65392
RIM-COD-SHA1-2: 28 39 58 f5 11 f6 25 ec f9 a7 f2 dc 59 e9 33 89 2f c5 95 1f
RIM-COD-URL-1: Lyric_Lord-1.cod
RIM-COD-Size-4: 47328
RIM-COD-SHA1-1: f2 97 6b 2b 96 19 54 53 72 f6 cf 3b 31 0d dc a0 0e 58 4b c9
RIM-COD-Size-3: 40692
RIM-COD-Size-2: 54804
RIM-MIDlet-Flags-1: 0
RIM-COD-Size-1: 38364
RIM-COD-Module-Name: Lyric_Lord
MIDlet-Name: Lyric Lord
RIM-COD-Size: 51608
RIM-COD-Creation-Time: 1371719309
MIDlet-1: Lyric Lord,img/cooltext1051003439.png,
RIM-COD-URL: Lyric_Lord.cod
RIM-COD-SHA1: 6e 8d 8c 3c 9f 81 69 e7 61 0d 9f cd 31 da 90 8d 22 f0 d8 a9
MicroEdition-Profile: MIDP-2.0
MIDlet-Vendor: Vendor Name
RIM-MIDlet-Icon-Count-1: 1

 

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

you could try to unpack the cod (its actually a zip file that contains the sub-cods), maybe it helps.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Ne0macer
Posts: 13
Registered: ‎06-11-2013
My Device: Blackberry 9300

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

What program can I use to Unzip the COD file?
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

7zip, winzip, winrar, basically everything that can handle zip files.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Ne0macer
Posts: 13
Registered: ‎06-11-2013
My Device: Blackberry 9300

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

Okay so I extracted the cod files and tried installing it again and it works now! Thank you. But does this mean that everytime I want to test it on my physical device or if i want to host it on a server for OTA installations, that I would have to extract all the COD files first?

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

Eclipse puts the extracted files into deliverables/web, so you don't have to do it yourself.
Back in the JDE days we extracted each build ourself, due to the quite incalculable risks that you experienced yourself (works on 90% of the devices, but sometimes not...)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Ne0macer
Posts: 13
Registered: ‎06-11-2013
My Device: Blackberry 9300

Re: Keep getting the error "Downlaod failed 907 Invalid COD File not found"

Okay so when I want to install it OTA I just use the files in the deliverables/Web folder? Seems simple enough. I guess that pretty much solves my problem. Thanks so much! I'll post here again if another problem of the same sort appears. But for now it should work 100%. Thank you