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

Reply
Developer
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

Blackberry Tour OS Upgrading affect existing application ( from V.4 to V.5)

[ Edited ]

Hi BB core Developers,

 

I have faced a series issue due to the up-gradation OS version 4 to 5. The error message getting is "Uncaught exception: Java.lang.Error".

This error raced after the OS up-gradation.

 

Here I am listing the tested environments.

 

#

Version

Case

PHONE

Result

1

4

Normal Installation

All

Worked

2

5

Normal Installation

Bold

Worked

3

4-5

Installed the application while OS Ver. is 4 (worked) and then Upgrade the OS Version to 5

Tour 9630

After Upgrade the OS The application Throws

"Uncaught exception: Java.lang.Error". While executing

4

4-5

Installed the application while OS Ver. is 4 (worked) and then Upgrade the OS Version to 5

Bold

Worked

 

 

Because of the existing the application cannot used.

 

The following were used in our application.

 

  1. Data store (Location :store = PersistentStore.getPersistentObject(0xdec6a67096f833cL);)

  2. Application Type is UiApplication

 

Please replay is the issue regarding the memory location ?

ie any device-os related issue?

and also include other possibilities also.

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: Blackberry Tour OS Upgrading affect existing application ( from V.4 to V.5)

How was the upgrade of each device performed? Over the air, desktop manager or java loader?

 

The only thing that indicates your problem is that it was a Persistent Object that threw the error and during OS upgrades, most (if not all) persistent data is erased.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Highlighted
Developer
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

Re: Blackberry Tour OS Upgrading affect existing application ( from V.4 to V.5)

[ Edited ]

How was the upgrade of each device performed? 

The os Upgradation done through Internet (Through official BB Upgradation). 

 

In my program - If the persistance data is erased, then i have a block of code(function) for reinitialize the database.

 

 

Here I am including the part of code which execute for Data store load and initialization. 

 

static {
store = PersistentStore.getPersistentObject(0xdec6a67096f833cL);
synchronized (store) {
if (store.getContents() == null) {
store.setContents(new Vector());
store.commit();
}
}
_data = new Vector();
_data = (Vector) store.getContents();
}

 

 

 

public static void main(String[] args) {

MyAppClass app = new MyAppClass();// data init done in this constructure 
app.enterEventDispatcher();
}