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
Highlighted
New Developer
Posts: 4
Registered: ‎08-05-2011
My Device: Developer
My Carrier: none

PersistentObject .get and set contents throwing controlled access exceptions only on device.

Hi,

 

as the description says. I am storing data in a persistent store, and in the simulator everything works fine, but as soon as I get my application on to the device the getContents and setContents methods of PersistentObject throw controlledAccessExceptions. I have signed my application, as well as enabled ALL permissions, both via the application permissions menu in my device options and programatically. Is there any reason anyone can think of as to why this would happen?

 

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: PersistentObject .get and set contents throwing controlled access exceptions only on device.

it could be possible that an ITPolicy is set, like disable persistant plain text.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter