09-29-2008 11:28 AM
Please see this link.
Support - 907 Invalid Jar Error when installing an application wirelessly
Article Number: DB-00432
10-01-2008 12:48 PM
I am also getting this error (907 invalid cod)
I've referenced the article Mark had linked and addressed all the issues.
Here is my procedure and hopefully someone can point something wrong with my process.
I have 3 projects (2 applications and 1 library)..... my goal is to install all 3 in a single OTA download
Note: The only cod that has siblings is the library (I'll reference as project C).
I put the cod, jad and jar files into a single directory, while ensuring that I extracted the contents of C.cod. So the contents are as such:
2. I ran the following commands:
updateJad.exe A.jad B.jad
updateJad.exe A.jad C.jad
I've verified that the the new entries have been added in A.jad
3. I put all files onto the web server.
4. Using the Blackberry browser I hit A.jad and it looked like it downloaded all the way but at the end I get the error message "907 invalid cod"
Any help would be appreciated.
10-02-2008 09:05 AM
Please verify that you are using a version of BlackBerry JDE that is supported by the target BlackBerry handheld.
What Is - Appropriate version of the BlackBerry JDE
Article Number: DB-00537
10-02-2008 11:56 AM
I am using the Blackberry JDE eclipse plugin but using the JDE 4.3 updateJad.exe.
I am deploying to the Curve 8330.
When I install it manually via the Desktop manager the application works fine..... although I am installing the raw cod files (without the updateJad.exe manipulation).
Is the process I laid out in the prior posting valid?
10-02-2008 01:13 PM
The steps you listed sound valid.
What version of the BlackBerry library and rapc is Eclipse pointing to? You can see this by going to the Window menu, selecting Preferences, expanding BlackBerry JDE and clicking on Installed Components.
What version of BlackBerry handheld software are you testing with? Do you have a public link to your JAD file you could share?
01-25-2009 11:35 AM
I'm hitting 907 invalid code and can't figure why.
Here are the steps I took:
1. Built the MIDlet using Netbeans.
2. Ran the following command:
rapc import="c:\Program Files\Research in Motion\Blackberry JDE 4.0.2\lib\net_rim_api.jar" codename=MyApp -midlet jad=MyApp.jad MyApp.jar
3. This gave me MyApp.cod and updated MyApp.jad
4. Renamed MyApp.cod to MyApp.zip and extracted MyApp.cod and MyApp-1.cod
5. Uploaded the extracted .cod files and the .jad file to server for OTA downloads
I am able to successfully download the MIDlet with a BlackBerry9000. It works flawlessly.
However, I get the 907 Invalid code error when the same is downloaded with a BlackBerry8707. I checked the About box on the 8707 and it gave me v4.0.xxx (Platform 3.8....).
a. Are the steps above valid for 8707 and similar devices?
b. Should I be using an older version of the JDE for this? Where do I find versions prior to 4.0? Can't find them in the downloads page.
c. Which number should I take as the version to compare against the JDE version: v4.0 or Platform 3.8 ?
Still new to the BB environment. Appreciate pointers.
01-25-2009 12:01 PM
In you original post you mentioned an HTTP 406 error. This error means "unnacceptable content".
Have you set up your MIME types for the JAD and COD file types on your web server? If not, this might be your problem.
See this KB article:
01-25-2009 12:08 PM
Perhaps I posted in the wrong thread. I am not getting a 406 error. Mime types are set.
I am able to download the MIDlet with my BB9000 without any errors at all.
I get the "907 invalid code" error, only when I try downloading with the 8707. I suspect the same error will be seen on other similar models.