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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel
Accepted Solution

net.rim.device.api.database.DatabaseIOException: File system error (12)



URI DB_URI = URI.create(DBPath);

if(sqliteDb != null)
sqliteDb = DatabaseFactory.openOrCreate(DB_URI);


This is giving exception.

Please give me solution to solve it out.

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: net.rim.device.api.database.DatabaseIOException: File system error (12)

Don't think it is possible given the informaiton we have. 


What is the Exception?  Which line is throwing the exception?  Have you confirmed that the database is on device and accessible (can you find it using the File application)?  Is the URL you are using for the database correct?  How did you create the database?  Have you run the SQL demo application and does it work?

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: net.rim.device.api.database.DatabaseIOException: File system error (12)

I got the solution for this.


It is happening because I was trying to open a new Read-write DB connection without closing previous one. SO it is generating this error. We can open only one Read-write DB connection while can open multiple readOnly Connections at a time


I am closing DB connection after all DB transactions in finally block.


Please press like, if you find your solution orlet me know, if having any query.