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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified
Accepted Solution

Receiving 907 Invalid Cod after UpdateJad on Main application and Library application

Hi everyone,

 

To distribute my BlackBerry application over-the-air (OTA) in the past, I would package my main application, MyApp, and package a linked library application, MyLibrary, containing the main application's resources separately.  Then, I would copy the COD/JAD files from the library application into the same directory as the COD/JAD files of the main application and run UpdateJad.exe on MyApp.jad and MyLibrary.jad.  At that point, I would upload all of the files to my web server (with the correct .htaccess file) and I could download my application onto devices with no problem.

 

That was some time ago (one to two years).  Now, I'm updating my application and trying to do it again.  I notice, however, that when I package my main application, Eclipse generates COD/JAD files for BOTH the library application AND the main application in the same directory of the main application project (deliverables>Web>7.1.0).  I don't believe this happened in the past.  That directory now contains:

 

  • COD files for MyApp
  • COD files for MyLibrary
  • MyApp.jad
  • MyLibrary.jad
  • MyApp_full.jad (I don't recall this being generated in the past, either)

Now, I've tried uploading my application several ways, and each way yields a "907 Invalid COD" error:

 

  • Uploading the generated directory as-is (and trying to download MyApp.jad AND MyApp_full.jad)
  • Running UpdateJad.exe on MyApp.jad and MyLibrary.jad
  • Running UpdateJad.exe on MyApp_full.jad and MyLibrary.jad
  • Copying only the MyApp files from the generated directory and combining them in a new directory with the generated MyLibrary files from the separate, packaged project (and running UpdateJad.exe on MyApp.jad and MyLibrary.jad)
  • etc...I've basically tried every combination.

But nothing works!  However, if I install the app via MyApp.alx through BlackBerry Desktop Manager, it works.  Does anyone know what might be going on here?

 

Thanks!

Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified

Re: Receiving 907 Invalid Cod after UpdateJad on Main application and Library application

Update: I am receiving the same error for OS 5/6 versions of my application too, which do not have a linked library application.  All I am doing is uploading the generated files to a webserver, and pointing the device to MyApp.jad.  I receive a "Download Failed" for reason of "907 Invalid Cod".  Did something change recently in terms of specifying the following in an .htaccess file on the web server?

 

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/vnd.rim.cod cod

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Receiving 907 Invalid Cod after UpdateJad on Main application and Library application

I might depend on how you configure the system, but I have found the the ...._full.jad is just that, a full jad which already includes the cods for the Library and the main application.  I don't know if this was a recent change since I have only recently moved t using Eclipse.  So try the ..._full jad. 

 

Not sure about your OS 5.0 issue, let us resolve the other issue first. 

Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified

Re: Receiving 907 Invalid Cod after UpdateJad on Main application and Library application

Hi peterstrange,

 

I believe that I have resolved the issue.  I realized that I was having problems uploading files to my webserver over the past couple of days using my standard FTP clients.  Once I uploaded the COD/JAD files to another web server, the download and installation worked with no problem (using MyApp_full.jad).

 

I appreciate your quick response to help!