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
Regular Visitor
TomJM
Posts: 1
Registered: ‎11-15-2012
My Device: Blackberry 9700
My Carrier: blackberry

openDatabase() returns DOMException #18 (SECURITY_ERR)

I am trying to open a database using the blackberry smartphone simulator 9700 (tried all versions). Works fine in the ripple but in the simulator the following line of code returns the error message: DOMException #18 (SECURITY_ERR):

 

db = openDatabase('EPBcache', '1.0', 'User Phonebook DB', 2 * 1024 * 1024);

 

Others have been having the same problem from what i've seen in other forums but cant find any solutions. From what i understand, i cant use the method openDatabase().

 

Is there a way round this problem? Let me know if more information is needed.

Please use plain text.