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 Developer
Posts: 9
Registered: ‎02-24-2009
My Device: Not Specified
Accepted Solution

Sibling COD file doesn't get downloaded to the phone.

I have a simple jad/cod app I want to provision to the phone via bb browser. It consists of main app module and a library. It used work fine, untill main app file grew-up in size so htat it is split by the copiler into 2 sibling cod files packaged as one COD. With that in hand i get 907 + HTTP500 when i try to download the application. I read http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/What_Is... and tried unziipping the cod(as some opther threads suggested) and than it downloaded and reported installation to be OK but than when lauching the app it says that the second part is misssing! Manually editing the jad file doesnt help. Please someone advise!
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Sibling COD file doesn't get downloaded to the phone.

When you have compiled your cod file (with siblings) do the following.

 

Rename it to zip file.

 

Unzip it.

 

If it unzipped ok - delete zip file. If it cannot be unzipped, there are no siblings inside. Rename zip file to cod.

 

Do not edit jad file manually. It is not necessary.

New Developer
Posts: 9
Registered: ‎02-24-2009
My Device: Not Specified

Re: Sibling COD file doesn't get downloaded to the phone.

I did just as you've written - i get "application couldn't find "<appName>_1" module" when trying to start an application in BlackBerry. Where "<appName>_1" is the name of a sibling. Maybe this is because it(sibling) is not stated in the jad file? Because i have refferces and hashes for both app cod and library cod in the jad but none for that sibling with _1Smiley Sad. But i don't know how to put it there...
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Sibling COD file doesn't get downloaded to the phone.

All siblings have to be stated in the project jad file automatically during your project compilation.

 

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Sibling COD file doesn't get downloaded to the phone.

There is nothing to be edited in jad file manually.

 

If jad file does not contain references to sibling files - it means that there are no siblings inside the compled cod file.

New Developer
Posts: 9
Registered: ‎02-24-2009
My Device: Not Specified

Re: Sibling COD file doesn't get downloaded to the phone.

yes, you're right. The problem was in the server deployment software - it took generated jad files of app and library and put them togeather in one jad file. And it completely ignored the sibling part... Thank God it is resolved! Thanks for help also!
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Sibling COD file doesn't get downloaded to the phone.

That's good to know Smiley Happy

 

You're welcome Smiley Happy

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Sibling COD file doesn't get downloaded to the phone.

What does the jad file end up looking like?

I finally had to cross the threshold and I'm getting someone appending

RelativeCodIndex=1 to the query string but now that I set up to respond to this no one

asks any more and I just get the error. 

 

Do you have a sample jad file or is this transparent? 

Thanks.

 

 

 

 

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Sibling COD file doesn't get downloaded to the phone.

I'm also getting a rim_cod_selection header that seems to have appeared as

soon as I handled the other condition...

 

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Sibling COD file doesn't get downloaded to the phone.

It seems if you run UpdateJAD on the input jad, it will in fact create new cod entries

so the jad probably does need to be fixed. I haven't gotten anyone to try a download

yet but none of the other approaches have worked so far.

 

Apparently the RIM-COD-URL-n doesn't require that "n" corresponds to midlet

or module numbers, at least that is what I'm hoping Smiley Happy