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

Programmatically install and upgrade applications

by BlackBerry Development Advisor ‎02-12-2010 04:15 PM - edited ‎02-17-2010 11:29 AM (37,429 Views)

Summary


This article applies to the following:

  • BlackBerry® smartphone


Details


There are multiple ways to install an application on a BlackBerry smartphone. The native support mechanisms are described in DB-00041. Along with the native installation mechanisms, it is possible to programmatically install or upgrade an application. This can be done by downloading the application's .cod files from a server, such as a web server, and using the CodeModuleManager class to install the .cod file on a BlackBerry smartphone. A sample application demonstration can be found here.


This sample application reads a configuration file from a web server, which lists the applications to be installed or upgraded. The format of the configuration file is explained in the Installer class. The .cod files to be installed must also reside on a web server. Refer to the comments at the beginning of the Installer.java file for information on the format of the configuration files.


Note: An application cannot upgrade itself.


Contributors
Comments
by Developer on ‎09-06-2010 10:09 AM

Interesting and educational. Installing several modules gives me a stack overflow

by Administrator on ‎09-07-2010 02:24 PM

What BlackBerry Smartphone model and BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

Are you installing multiple applications or an application with multiple cod files?  How many of either are needed to trigger this?

by Developer on ‎09-08-2010 07:05 AM

I made some changes to the code. I will get back to the original code and try to pinpoint how and when it happens

by Developer ‎09-08-2010 08:12 AM - edited ‎09-08-2010 08:14 AM

This is the list of modules:

Moblib,MobismaME,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt,
Listener,MobismaME,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt,
LogBrowser,MobismaME,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt,
Loglistener,MobismaME,Phone Log Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Loglistener.txt, 
MessageHandler,MobismaME, Message Handler,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/MessageHandler.txt, 
Redirector,MobismaME,Redirector,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Redirector.txt,
SetConfigs,MobismaME,Set Configs,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/SetConfigs.txt,
TestDriver,MobismaME,Test Driver,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/TestDriver.txt,

 

Maximum size is 22k (moblib library)

 

I have a log saved from running the simulator in debug mode and a screen capture when it all stopped. no way to attach files here it seems

 

Here is a part of it showing that the Listener (PhoneListener) was installed. It is an autostart module so it starts and then it crashes. Lots and lots of talk about Moblib in the log also

 

CMM: add Listener(11990)
AC: new CRC = 1688
AC: new CRC = 1688
Phone Listener 2.1.5 was installed.
Installing Log Browser 2.1.5
VM:smileytongue:ISVt=0,h=2b31,id=d15a33128dfbb5d9
VM:LNTDa=commit,t=0,p=net_rim_app_manager
Starting tier 7
VM:smileytongue:ISVt=1,h=2b31,id=d15a33128dfbb5d9
VM:LNTDa=commit,t=1,p=net_rim_app_manager
Starting Listener
VM:LINK Moblib
VM:LINK Listener
VM:CLRCv=0
CMM: set CRC 0e22fc2e
NVS: delete 2
NVS: write 2
NVS: erase 12
NVS: rotate 56
NVS: commit 562
Started Listener(224)
############## Calling 99 and 100
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
VM:NCICv=25
VM:NFICv=5
VM:NFICv=4
VM:NFICv=8
VM:NFICv=7
VM:NFICv=6
Starting net_rim_process_launcher
Started net_rim_process_launcher(225)
VM:LNTDa=commit,t=0,p=net_rim_services_impl
Exit net_rim_process_launcher(225)
Detected background switch for net_rim_process_launcher(225) who has NO tunnels open - defocus NOT called
Exit Listener(224)
StackOverflowError
No detail message

 

Basically the same thing happens after loglistener is installed

 

And then after MessageHandler. All these are autostart so it seems that it is connected to this. There is nothing wrong with hte listeners. They are running perfectly when doing normal install  

by Developer on ‎09-08-2010 10:01 AM

Removed autostart on all. Did not help

by Developer on ‎09-08-2010 11:39 AM

More info

 

Installing a single large app (7 sibling codfiles taken one at the time from the website)  seems to work fine.

When I try to run the app it fails since the library is missing. Installing the library (correct).  Installing the library

and the large app in one go seems to work ok but when I start the app I get Stack overflow again. Will try to do this in 2 separate steps

and see what happens.

by Developer on ‎09-08-2010 12:39 PM

Well.

Bad news.  The tests might not be valid. Cleaning the simulator does not always remove earlier versions. I am running "run configurations"´in Eclipse

 

Sometimes I even get the wrong simulator. Extremely confusing. I have to start all over again. Will setup tests in BB IDE.  **bleep**!

 

by Administrator on ‎09-08-2010 02:10 PM

Was the library installed first?  If not, an autostart app would fail to start the first time.

 

Applications with many sibling cod files may require a hard reset after installation.  The sample should prompt for this, but your results for that prompt may vary if you are using the simulator.

by Developer on ‎09-08-2010 04:18 PM

Have been digging for a while.

Moved to the BB IDE for better control over what is loaded and using my miniclean bat that erases all .dmp files for cleaqning the simulators

 

I am currently in a Kafka world.  (4.5 variety)

 

The app consists of one Midlet cod (the big one) and a couple of smaller ones (Listeners and other services, none of them Midlets).

 

The current situation is that I have setup for installation of all modules except the big Midlet. Being a real oldtimer I know that 99.9% of all errors are errors you make yourself so I have triple checked everything. The installation is definitely for the "service"  modules only. I have entered some additional "log" statements in the installer to verify that. They do not indicate anything else. I have checked that the service modules I load to the website are correct.

 

I start debug. I verify that neither the Download folder nor any other folder has anything installed. Checking Options reveal no other apps.

I load the installer. Running the "View" option of it reveals none of my apps. I load the Installer and runs it (see log below)

 

I get an Uncaught Stack Ovwerflow condition.  The debugger stops complaining that 5 items where not found.

All of them only exists in the Midlet App only. The log also talks about the Midlet.   This run has no midlets involved. The codname of the midlet is mobismaME.cod

 

Starting MEInstaller
Started MEInstaller(217)
Foreground MEInstaller(217)
FocusHistory: Focus gained; App Home Screen; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
FocusHistory: Focus lost; App Home Screen; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
FocusHistory: Focus gained; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus lost; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus gained; App MEInstaller; Component net.rim.device.api.ui.menu.DefaultMenuListField
FocusHistory: Focus lost; App MEInstaller; Component net.rim.device.api.ui.menu.DefaultMenuListField
Starting net_rim_process_launcher
Started net_rim_process_launcher(218)
Applist: 
Moblib,Mobisma App,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt,
Listener,Mobisma App,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt,
LogBrowser,Mobisma App,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt,
Loglistener,Mobisma App,Phone Log Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Loglistener.txt, 
MessageHandler,Mobisma App, Message Handler,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/MessageHandler.txt, 
Redirector,Mobisma App,Redirector mod,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Redirector.txt,
SetConfigs,Mobisma App,Set Configs,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/SetConfigs.txt,
TestDriver,Mobisma App,Test Driver,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/TestDriver.txt,

Application: 
Moblib,Mobisma App,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt,
Moblib,Mobisma App,Mobisma Library,2.1.5Mobisma ABhttp://91.142.190.243/Mobisma/Moblib.txt
Installing Mobisma Library 2.1.5
Exit net_rim_process_launcher(218)
CMM: add Moblib(10439)
AC: new CRC = 1520
AC: new CRC = 1520
Mobisma Library 2.1.5 was installed.

Application:
Listener,Mobisma App,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt,
Listener,Mobisma App,Phone Listener,2.1.5Mobisma ABhttp://91.142.190.243/Mobisma/Listener.txt
Installing Phone Listener 2.1.5

MIDlet PushRegistry startup                           <-  What????
MIDlet PushRegistry startup finished
CMM: add Listener(10435)
AC: new CRC = 1521
AC: new CRC = 1521

CMG: deleting Mobisma App                            <-   ?

Phone Listener 2.1.5 was installed.

Application: 
LogBrowser,Mobisma App,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt,
LogBrowser,Mobisma App,Log Browser,2.1.5Mobisma ABhttp://91.142.190.243/Mobisma/LogBrowser.txt
Installing Log Browser 2.1.5
Starting tier 7
Starting Listener
No debug information found for 'Listener' (4c87ca2e).
No debug information found for 'Moblib' (4c87ca2c).
VM:LINK Moblib
VM:LINK Listener
CMM: set CRC 50bc553d
NVS: delete 2
NVS: write 2
NVS: erase 9
NVS: rotate 32
NVS: commit 148
Started Listener(219)
MIDlet PushRegistry startup                         <----------------  ???   Starting Mobisma Midlet App????????
MIDlet PushRegistry startup finished
Starting net_rim_process_launcher
Started net_rim_process_launcher(220)
Exit net_rim_process_launcher(220)

Bang!!!

 

Checking the log it also talks about Midlet

 

There might be errors inthe Midlet App but it should not have any consequences when installing the service modules only. I does not

when I install the exactly the same service modules  locally. And why a stack overflow. Possibly the info about missing objects is all wrong 

 

You know, confusing the enemy

 

Kafka Indeed.

 

 

by Developer on ‎09-08-2010 05:12 PM

Lastly.

 

Debug error info is wrong. The problem is not caused by problems with objects. The midlet has been replaced by correct one. This time I pushed "Step Over " many times and the installer run to end seemingly installing all server modules and the log shows several "stack oveflows". Lots of talk about moblib (the library)

 

Starting MEInstaller
Started MEInstaller(216)
Foreground MEInstaller(216)
FocusHistory: Focus gained; App Home Screen; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
FocusHistory: Focus lost; App Home Screen; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
FocusHistory: Focus gained; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus lost; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus gained; App MEInstaller; Component net.rim.device.api.ui.menu.DefaultMenuListField
FocusHistory: Focus lost; App MEInstaller; Component net.rim.device.api.ui.menu.DefaultMenuListField
JVM: bklt @9262: timer
JVM: bklt[1] @9262: idle 0
JVM: bklt @9262: setTimer 22
Starting net_rim_process_launcher
Started net_rim_process_launcher(217)
Exit net_rim_process_launcher(217)
Applist:  Moblib,Mobisma App,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt,
Listener,Mobisma App,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt,
LogBrowser,Mobisma App,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt,
Loglistener,Mobisma App,Phone Log Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Loglistener.txt, 
MessageHandler,Mobisma App, Message Handler,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/MessageHandler.txt, 
Redirector,Mobisma App,Redirector mod,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Redirector.txt,
SetConfigs,Mobisma App,Set Configs,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/SetConfigs.txt,
TestDriver,Mobisma App,Test Driver,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/TestDriver.txt,

Application:  Moblib,Mobisma App,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt,
Info: Moblib,Mobisma App,Mobisma Library,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Moblib.txt
Installing Mobisma Library 2.1.5
CMM: add Moblib(10426)
AC: new CRC = 1520
AC: new CRC = 1520
Mobisma Library 2.1.5 was installed.
Application:  Listener,Mobisma App,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt,
Info: Listener,Mobisma App,Phone Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Listener.txt
Installing Phone Listener 2.1.5
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
CMM: add Listener(10430)
AC: new CRC = 1521
AC: new CRC = 1521
CMG: deleting Mobisma App
Phone Listener 2.1.5 was installed.
Application:  LogBrowser,Mobisma App,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt,
Info: LogBrowser,Mobisma App,Log Browser,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/LogBrowser.txt
Installing Log Browser 2.1.5
Starting tier 7
Starting Listener
No debug information found for 'Listener' (4c87ca2e).
No debug information found for 'Moblib' (4c87ca2c).
VM:LINK Moblib
VM:LINK Listener
CMM: set CRC 3524c4f0
NVS: delete 2
NVS: write 2
NVS: erase 9
NVS: rotate 32
NVS: commit 148
Started Listener(218)
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
Starting net_rim_process_launcher
Started net_rim_process_launcher(219)
Exit net_rim_process_launcher(219)
Exit Listener(218)
StackOverflowError                                                               <<<<<<<<<<<<<<<<<<
No detail message
net_rim_cldc(4B2BA9B4)
 LongIntHashtable
 get
 0x7EB0
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x4C91
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x460E
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 getBoolean
 0x4472
net_rim_cldc(4B2BA9B4)
 PersistentStore
 getPersistentObject
 0x8C04
Moblib(4C87CA2C)
 PermStore
 <private>
 0xD9C
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Listener(4C87CA2E)
 Listener
 main
 0x65F
FocusHistory: Focus gained; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus lost; App MEInstaller; Component net.rim.device.api.ui.component.RichTextField
FocusHistory: Focus gained; App Home Screen; Component net.rim.device.api.ui.component.ButtonField
JVM: bklt @9909: timer
JVM: bklt[1] @9909: idle 185
JVM: bklt @9909: setTimer 22
CMM: add LogBrowser(10425)
AC: new CRC = 1522
AC: new CRC = 1522
CMG: deleting Mobisma App
Log Browser 2.1.5 was installed.
Application:  Loglistener,Mobisma App,Phone Log Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Loglistener.txt, 
Info: Loglistener,Mobisma App,Phone Log Listener,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Loglistener.txt
Installing Phone Log Listener 2.1.5
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
CMM: add Loglistener(10433)
AC: new CRC = 1523
AC: new CRC = 1523
CMG: deleting Mobisma App
Phone Log Listener 2.1.5 was installed.
Application:  MessageHandler,Mobisma App, Message Handler,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/MessageHandler.txt, 
Info: MessageHandler,Mobisma App, Message Handler,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/MessageHandler.txt
Installing  Message Handler 2.1.5
Starting tier 7
Starting Loglistener
VM:LINK Loglistener
CMM: set CRC b1a95611
NVS: delete 2
NVS: write 2
NVS: erase 10
NVS: rotate 1
NVS: commit 148
Started Loglistener(220)
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
JVM: bklt @10469: timer
JVM: bklt[1] @10469: idle 97
JVM: bklt[1] @10469: enableBacklight 0
JVM: bklt[1]: setTimeout 45
Exit Loglistener(220)
StackOverflowError                                                        <<<<<<<<<<<<<<<<<<<<
No detail message
net_rim_cldc(4B2BA9B4)
 LongIntHashtable
 get
 0x7EB0
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x4C91
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x460E
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 getBoolean
 0x4472
net_rim_cldc(4B2BA9B4)
 PersistentStore
 getPersistentObject
 0x8C04
Moblib(4C87CA2C)
 PermStore
 <private>
 0xD9C
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Loglistener(4C87CA31)
 LoglistenerR
 main
 0x396
CMM: add MessageHandler(10442)
AC: new CRC = 1524
AC: new CRC = 1524
CMG: deleting Mobisma App
 Message Handler 2.1.5 was installed.
Application:  Redirector,Mobisma App,Redirector mod,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Redirector.txt,
Info: Redirector,Mobisma App,Redirector mod,2.1.5,Mobisma AB,http://91.142.190.243/Mobisma/Redirector.txt
Installing Redirector mod 2.1.5
Starting tier 7
Starting MessageHandler
VM:LINK MessageHandler
CMM: set CRC 85eae623
NVS: delete 2
NVS: write 2
NVS: erase 11
NVS: rotate 36
NVS: commit 148
Started MessageHandler(221)
MIDlet PushRegistry startup
MIDlet PushRegistry startup finished
Exit MessageHandler(221)
StackOverflowError                                                      <<<<<<<<<<<<<<<<<<<<<<<<<
No detail message
net_rim_cldc(4B2BA9B4)
 LongIntHashtable
 get
 0x7EB0
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x4C91
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 <private>
 0x460E
net_rim_cldc-5(4B2BA9B4)
 ITPolicy
 getBoolean
 0x4472
net_rim_cldc(4B2BA9B4)
 PersistentStore
 getPersistentObject
 0x8C04
Moblib(4C87CA2C)
 PermStore
 <private>
 0xD9C
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator
 HandleAlert
 0x171
Moblib(4C87CA2C)
 PermStore
 <private>
 0xE71
Moblib(4C87CA2C)
 PermStore
 getEntry
 0x71F
Moblib(4C87CA2C)
 Communicator

by Administrator on ‎09-09-2010 11:39 AM

Can you answer the following:

 

1.  Does the StackOverflowError always appear after installing specific applications/modules or after a specific number of modules?

2.  Does it fail at the same point if you change the install order?

3.  Are you only seeing this on BlackBerry device software 4.5, or is that all you have tried so far?

4.  Are you able to start the applications after they have been installed?  If not, what is the error?  Are you able to run them after performing a hard reset?

by Developer on ‎09-09-2010 06:29 PM

Here is what I have found out:

 

install moblib   (library)     OK

 

install phonelistener        OK

 

install Logbrowser          OK

 

exit phoneListener

Stack overflow       

 

install log listener

 

exit log listener

Stack overflow

 

install Testdriver     

 

install Messagehandler

 

exit Messagehandler

Stack overflow

 

Install Redirector

 

SetConfig?

 

The stack overflow occurs immediately after I get exit on PhoneListener, Phone Log Listener  and MessageHandler.  Autostart and listeners

 

All modules seems to install OK except possibly not the last one when the app hangs  

 

I get alerts for the Stack overflows and click Continue. Before finishing all modules the app hangs.

 

I have only run it on 4.5 and on simulator Eclipse and debug (to get a log)

 

No problem with nonauto, nonlistener modules it seems

 

List of modules:

 

Moblib

phonelistener

logbrowser

Testdriver

loglistener

Messagehandler

Rediretor

Setconfig      does not get installed, app hangs

 

 

 

 

 

by Developer on ‎09-10-2010 03:26 AM

Ah!

 

Made a run with "normal apps" only, Install went fine, run to end, no problems.

 

Starting any of them gives the Stack Overflow. So it was the autostart that caused the problem.

 

by Developer on ‎09-10-2010 05:30 AM

Moved over to 5.0. Same result. Different simulator

by Developer on ‎09-11-2010 11:31 AM

I think this is the last piece of the puzzle.  When I said that apps where failing at startup it was true. Further tests revealed that

they work after a restart of the device. At least true for the app that has sibling segments. On the theme of sibling segments I see in the code that they are treated the same way as standard cod-file. The API reference shows a different way of doing this with the normal procedure for the first cod and a different procedure fore the following segment. Apparantly this is not necessary.

 

Anyway. The code does not seem reliable on determining if a restart is needed or not. What happened today was that for the first time I was prompted for a restart on a "normal" app. I do not know why, never happened before

 

Furthermore, installing autostart modules this way might not be workable. Maybe there is a way to load the apps without autostart, and then set the autorun flag (if that is possible) and always prompt for a restart.

by Developer on ‎09-21-2010 02:08 PM

 

is it possible to install theme using this programmatically method?

i already try it to install themes using this sample,

every cod are installed successfully, but the theme is not listed in Options > Themes.

 

The theme is already installed because it's listed on Options >  (Adv. Options >) Applications.

try it on 8900/4.6.1.xxx and 9700/5.0.0.xxx

on simulator and real device. all the same problem.

 

try it to install multiple cods app is failed too,

the app is run time error.

 

may be anyone success using this sample can inform any other samples?

 

thank you.

 

 

by Administrator on ‎09-21-2010 03:05 PM

There is an issue that prevents themes installed using CodeModuleManager from appearing in the list under Options, Themes.  This should be resolved in BlackBerry device software verions 5.0.0.695 and higher.  The work around is to manually perform a hard reset after the theme file has been installed.