Welcome to Port3101.org : Your BES Connection Mark forums read | View Forum Leaders
Port3101.org : Your BES Connection



Reply
LinkBack (1) Thread Tools Display Modes
DB-00432 - 907 Invalid Jar Error when installing an application wirelessly
 
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-14-2009, 03:02 PM
hdawg's Avatar
Proprietor
 
Join Date: Nov 2008
Posts: 2,237
Blog Entries: 147
Default DB-00432 - 907 Invalid Jar Error when installing an application wirelessly

Problem

When you attempt to install an application wirelessly with the BlackBerry® Browser, Internet Browser, or WAP Browser, the installation fails and the following error appears:
907: Invalid Jar


Summary of Causes

The error is caused by one of the following:
  1. The COD file is corrupt.
  2. The RIM-COD-SHA1, RIM-COD-Size, MIDlet-Jar-Size, or MIDlet-Jar-URL parameters, specified in the Java Application Descriptor (JAD) file, are missing or incorrect.
  3. You have installed a large application with the WAP Browser.
  4. You have attempted to install, with the WAP Browser or Internet Browser, a COD file that contains sibling COD files.
  5. The browser is unable to locate COD files listed in the JAD file.
  6. Certain versions of the BlackBerry® Device Software can display the error during the installation of an application wirelessly.
  7. The MIME types for JAD and COD files have not been configured correctly on the web server hosting the application.
  8. An application has exceeded the maximum number of preverification stack maps allowed for a specific method.
  9. The filename of a COD file referenced in the JAD file contains multiple periods.
  10. You have attempted to install, with the Blackberry Browser (BES/MDS), a COD file that contains sibling COD files but your Browser Identification (user-agent) property is not set to Blackberry.

Cause 1

The COD file is corrupt.

Resolution

Rebuild the application and place a new copy of the COD file on the web server.

Cause 2

The RIM-COD-SHA1, RIM-COD-Size, MIDlet-Jar-Size, or MIDlet-Jar-URL parameters specified in the JAD file are missing or incorrect.

Resolution

BlackBerry Device Software 4.1 verifies the parameters listed in the JAD file are correct. Update the JAD file with the correct values from the JAD file that is created by the BlackBerry® Java® Development Environment (BlackBerry JDE). These values may change each time an application is modified and rebuilt.
Note: If COD files are used, the JAR file does not have to be placed on the web server; however, the MIDlet-Jar-URL must be present.

Cause 3

You have installed a large application with the WAP Browser.

Resolution

Many wireless service providers place restrictions on the size of files that can be downloaded with their WAP gateway. Files with a size greater than the maximum limit are truncated, corrupting the COD file.
Contact your wireless service provider to verify the maximum file size that can be downloaded or install the application with the BlackBerry Browser or Internet Browser.

Cause 4

You have attempted to install a COD file that contains sibling COD files using the WAP Browser.
If an application contains more than 64 KB of data in the application or data space, it is divided into multiple COD files known as sibling COD files. These sibling COD files are then packaged in a parent COD file that is a zip archive with the COD extension.
Note: The WAP Browser does not support the installation of a COD file that contains sibling COD files.

Resolution

There are two possible resolutions to this issue:
[*] Install the application using the BlackBerry Browser or the Internet Browser. Note: The Internet Browser does not support COD files larger than 512 KB.
OR[*] Extract the sibling COD files from the parent COD file using an application such as WinZip®. Place each sibling COD file on your web server and reference each one in the JAD file. When using this configuration, each COD file is downloaded separately. Note: The first sibling COD file has the same name as the parent COD file; therefore, it must be extracted to a different directory or else it could overwrite itself.

Cause 5

The browser is unable to locate COD files listed in the JAD file. The locations or URLs of the COD files are specified in the RIM-COD-URL parameters of a JAD file.
Note: This is often followed by a 404 error.

Resolution

Verify the URLs specified in the RIM-COD-URL parameters are valid.
Note: If the application is too large to be contained in a single COD file, the JAD file created with BlackBerry JDE 4.1 contains parameters for all sibling COD files instead of the parent COD file, which is not the case in previous BlackBerry JDE versions. You need to extract the sibling COD files from the parent COD file and place them on your web server. The parent COD file is a zip archive, which can be opened and extracted using an archive tool such as WinZip. The first sibling COD file has the same name as the parent COD file; therefore, it must be extracted to a different directory or else it could overwrite itself.


Cause 6

Certain versions of the BlackBerry Device Software can display the 907 Invalid Jar error when you install an application wirelessly; however, this issue has been resolved.
Note: It existed in some BlackBerry Device Software versions between 4.0.0.171 and 4.0.0.215.

Resolution

Modify the JAD file of the application. Locate the MIDlet-Jar-Size: parameter of the application JAD file, and set this parameter to 0 (zero).

Cause 7

The Multipurpose Internet Mail Extensions (MIME) types for JAD and COD files have not been configured correctly on the web server hosting the application.

Resolution

Configure the web server to handle these file types properly. For more information, see DB-00439.

Cause 8

An application has exceeded the maximum number of preverification stack maps allowed for a specific method.

Resolution

To resolve this issue, see DB-00661.

Cause 9

The filename of a COD file referenced in the JAD file contains multiple periods (for example, my.file.cod).
This is a previously reported issue that has been escalated internally to our development team. No resolution time frame is currently available.

Workaround

Rename the COD file so that it does not contain multiple periods.

Cause 10

You have attempted to install, with the Blackberry Browser (BES/MDS), a COD file that contains sibling COD files but your Browser Identification (user-agent) property is not set to BlackBerry.
The problem is caused when the BlackBerry smartphone's Browser Identification (user-agent) property is set to Netscape, Firefox, or Internet Explorer in BlackBerry Device Software 4.5 and later.
Note: Netscape® emulation mode was changed to Mozilla® Firefox® as of BlackBerry Device Software 4.6.
This is a previously reported issue that has been escalated internally to our development team. No resolution time frame is currently available.

Workaround

To work around this issue on a BlackBerry smartphone, complete the following steps:
Click the Browser icon.
Click Options on the menu.
Click Browser Options.
Click the Browser Identification field.
Click BlackBerry.
Save and exit.
To work around this issue on the computer, complete the following steps:
Extract the sibling COD files from the parent COD file using an application such as WinZip.
Place each sibling COD file on the web server.
Reference each sibling COD in the JAD file.
__________________
http://blog.port3101.org/hdawg/

The views expressed by me on Port3101 and its affiliated sites are my own and do not necessarily reflect the views of my employer.
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.port3101.org/featured-blackberry-kb-articles/1468-db-00432-907-invalid-jar-error-when-installing-application-wirelessly.html
Posted By For Type Date
Re: 907 invalid cod errors/App wont start for OS 5.0 devices This thread Refback 03-14-2010 09:05 AM


All times are GMT -4. The time now is 05:09 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2