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: 80
Registered: ‎10-26-2008
My Device: Z10
My Carrier: MTS UKR

Wipe after install

Hello all,

 

I'm developing application that performs server quires and results storing (some text and graphics)
into the PersistentStore (currently I'm using 3 PersistentObjects with different keys - to avoid possible
size restrictions).
But last time, after application install device goes to reboot and comes up without any user data (contacts,
message, calendar entries). Tested with 8300 Curve.

Any ideas? Need help!

Retired
Posts: 76
Registered: ‎07-11-2008
My Device: Z10
My Carrier: SingTel

Re: Wipe after install

Are you able to reproduce this condition? What is the version of the handheld software(Options->About)? What version of JDE did you use to build the application?
Sarim
BlackBerry Development Advisor
www.BlackBerryDeveloper.com
Developer
Posts: 80
Registered: ‎10-26-2008
My Device: Z10
My Carrier: MTS UKR

Re: Wipe after install

[ Edited ]

Thanks for your answer!

 

Its seems that this problem happens when I try to save byte array with a raw image data (PNG image from EncodedImage.getData()) as a member of persistent object. When I remove this part of code all works fine. (This EncodedImage created from resources with getEncodedImageResource() method. Saving byte arrays not from resources does not cause this issue.)

 

This issue also reproduced on 8100 with 4.5.0.55 OS as "JVM 529 error" on device startup.

Message Edited by xshadow on 10-28-2008 12:25 PM
BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Wipe after install

What version of the BlackBerry JDE are you using?  How much memory are you using for your persistent items?  Are you using up all of the available device memory?  If so, the BlackBerry could be trying to free available memory by deleting a user's content (old email, then old calendar appointments, etc...).

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Developer
Posts: 80
Registered: ‎10-26-2008
My Device: Z10
My Carrier: MTS UKR

Re: Wipe after install

I'm using JDE 4.2.1.

I'm not sure that this problem related with device's available memory because all works fine when I store this data not from resources but from SDCard.

 

I can store several downloaded photos but storing one photo from resource raises this issue (all photos are not very big: 30-100Kb).

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Wipe after install

Make sure that you are using unique long persistence keys.

 

Maybe you use keys that point to the existing data in persistent store.

 

 

Developer
Posts: 80
Registered: ‎10-26-2008
My Device: Z10
My Carrier: MTS UKR

Re: Wipe after install

[ Edited ]
I have already checked this. But I'm getting error when store object from resources and does not get any issues when store downloaded photos into this same persistence object.
Message Edited by xshadow on 11-03-2008 11:11 AM
BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Wipe after install


xshadow wrote:
I have already checked this. But I'm getting error when store object from resources and does not get any issues when store downloaded photos into this same persistence object.

What do you mean by "object from resources"?  How much free space do you see if you go to Options, Status on the BlackBerry handheld?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker