07-31-2008 04:04 PM
we have an application compiled with JDE 4.1 (around 400kB with many siblings) that used to work perfectly but after adding a few line codes it now crash our test units running OS4.1 when we install it OTA from the web browser. The 7290 simulator will fail with a "Error inside JVM: Access violation reading from 0x0001DE0". A real 8703e will crash hard and we've had to re-install the OS to make it reboot. Simulators and test machines running the OS v4.2 works fine.
Installation from the web browser seems to be the issue since putting the .cod inside the simulator directory and rebooting it works correctly.
Any idea on how to deal with this kind of issue? Could this be an issue with sibling CODs size?
08-01-2008 10:49 AM
What browser are you using to install the application? The BlackBerry Browser, Internet Browser or WAP Browser? You can see the default browser setting under Options, (Advanced Options), Browser.
Do you have a public like to your application you can provide?
08-01-2008 12:56 PM
Thanks for your reply Mark,
On the 7290 simulator it's called simply "Browser", and on the real 8703e unit we use the "Internet Browser". We have not tried the wap browser.
You can use the link "http://dev.cybercat.ca/rogers.linkforce.ca" to download/install the application. Like I said, download works fine on 4.2, but crashes really hard on 4.1.
08-01-2008 02:58 PM
I am prompted for a login when I access that URL.
Does the JAD file reference your main cod file or the sibling cod files? Referencing the sibling cod files would be the recommended approach. The following link explains.
What Is - The file size limit for wireless downloads
Article Number: DB-00015
08-01-2008 03:23 PM
Sorry about the link... it will redirect to the .jad only if accessed from a blackberry. The direct link to the .jad would be [http://dev.cybercat.ca/rogers.linkforce.ca/instal
The .jad does reference to the siblings extracted from the big cod (as well as to a couple of libraries). All the cod files referenced are <128kB.
In the meantime I have rebuilt the project by merging all the java files of the libraries directly in a single project big projects that gets splitted into 6 siblings. And this version works. So I have a workaround but that does not explain the issue!
08-01-2008 03:59 PM
Are your library files listed first in the JAD file? If not, you can run into issues if the application relies on that library and it is not available on the BlackBerry.
08-01-2008 04:23 PM
No luck on that side. I tried putting the libraries first in the .jad (and renumber the sections) and it still crashes at the end of download.
08-07-2008 12:39 PM
We have been able to workaround the crash by removing a couple of cod libraries and merging the code directly in the application. It does not explain why the crash on OTA installation but with some luck we'll be able to keep the application working until our clients all move to units with OS >=4.2 !
Thanks everybody for the various suggestions.