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

Testing and Deployment

Reply
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Problems with OTA

Hello experts!

 

I have developed a solution that have a library project dependency.

 

So in this moment i have two projects: MyApp and MyLib, both generate with your own .jad and .cod files, i read documentation that recommends to generate a unified .jad in this case, using updatejad tool.

 

Very well, i do it, so now i have one .jad file with two .cod files.

 

I have a server that i put these files, .jad and .cod´s and according the documentation i have to configure the mime types correctly, so i do it.

 

I have the .jad value of RIM-COD-URL: http://myDomain/MyApp.cod . If i access from a desktop browser i download correctly the .cod file.

 

It´s my target point,,, here when i access the url via blackberry browser, return the error 500, with "ZipException: invalid entry CRC" ...

 

Someone can help me?

 

Best regard, Rampelotti.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problems with OTA

You need to open the .JAD file from within the BlackBerry Browser, not the COD file itself.  Is that what you are doing?  At what point do you see the error?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems with OTA

Thanks for reply!

 

Yes i do it! but after load the .jad file i press the button download and when install the first .cod appear the error related.

 

But this error was resolved.

 

Now i have another problem, my .jad file have two .cod referenced, a lib and the application, but does not install lib.cod, only app.cod, when i run this, my application does not work correctly because miss lib project.

 

Can you have any idea here?

 

Regards, Rampelotti.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problems with OTA

Note if you have an auto-start application, the library will need to be listed first so that it is available when the application COD file is installed and tries to run.

 

Can you post your JAD file?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems with OTA

Thank for reply .

 

It´s my .jad content:

 

Manifest-Version: 1.0
MIDlet-Name: MyApp
Created-By: 1.5.0_22 (Sun Microsystems Inc.)
MIDlet-1: MyApp,,startup
RIM-MIDlet-Flags-1: 3
RIM-MIDlet-Flags-2: 0
MIDlet-2: MyApp,../MyApp/src/com/test/app/view/img/app_ico.png,
MicroEdition-Configuration: CLDC-1.1
RIM-MIDlet-Icon-2-1: ../MyApp/src/com/test/app/view/img/app_ico_over.png,focused
MicroEdition-Profile: MIDP-2.0
MIDlet-Description: test
RIM-MIDlet-Icon-Count-2: 1
MIDlet-Jar-Size: 4212244
MIDlet-Jar-URL: MyApp.jar
RIM-COD-Module-Name: MyApp
RIM-COD-Module-Dependencies: net_rim_cldc
RIM-MIDlet-NameResourceId-1: 0
RIM-COD-Creation-Time: 1218812329
RIM-COD-URL: MyLib.cod
RIM-COD-Size: 365306
RIM-COD-URL: MyApp.cod
RIM-COD-Size: 4627346

 

I´m wait for response.

 

Regards, Rampelotti.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problems with OTA

You can't have duplicate properties in your JAD file.  So for example instead of:

 

RIM-COD-URL: MyLib.cod
RIM-COD-Size: 365306
RIM-COD-URL: MyApp.cod
RIM-COD-Size: 4627346

 

You should have:

 

RIM-COD-URL: MyLib.cod
RIM-COD-Size: 365306
RIM-COD-URL-1: MyApp.cod
RIM-COD-Size-1: 4627346

 

And then increment the -# for every additional COD file.

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems with OTA

Thanks for reply!

 

But my problem was not fixed. I changed my .jad file and i included the correctly information, but it only install the app and it does not install the lib.

 

I think my problem is with .jar files, i changed the .jad file arguments only including the app.jar url, in the developers document has only this information.

 

Do you have any other suggestions?

 

Regards, Rampelotti.

Highlighted
BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problems with OTA

I'm not sure what you mean here.  Are you trying to deploy using only JAR files and not COD files?  The JAR files are not required if you are using COD files.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems with OTA

Thanks for reply!

 

I use .jad file that appoint to .cod files, but internally of .jad file has a jar url that appoint to jar file, but how you appoint here, i do not need to use .jar files and i do one more test with this.

 

So my attempts failed, i don´t understand why if i did all correctly, when i access the url appear the screen to download and install but only install the app, my lib is ignored.

 

Do you have any suggestions?

 

Regards, Rampelotti.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problems with OTA

Can you post the contents of your updated JAD file?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker