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.

Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

app not running with sdcard

I am trying to debug my app on a device, and previously, the app was running correctly, however, now I get a nullpointerexception when I try to access the sqlite database that is on the SDCard. I get this error exactly:


The exception is net.rim.device.api.database.DatabasePathException: Invalid path name. Path does not contains a proper root list. See FileSystemRegistry class for details.


The path was working fine earlier. Any ideas?

Regular Contributor
Posts: 83
Registered: ‎05-24-2011
My Device: Storm 9550
My Carrier: XXX

Re: app not running with sdcard

Here is my path:

String DB_NAME = "localdatabase.sql";

String dbLocation = "/SDCard/databases/CreativeCore/";
                // Create URI           
                URI uri = URI.create(dbLocation + DB_NAME);    
                System.out.println("uri is created");

 After this is a long try/catch where I try to open the database, but the databasepathexception is getting caught...

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

Re: app not running with sdcard

Can you see the SDCard when you use the Media 'Explorer'.  Start the Media and press the menu, select "Explorer".


You might find this code from the SQL Demo, usefUL:

            boolean sdCardPresent = false;
            String root = null;
            Enumeration e = FileSystemRegistry.listRoots();
            while (e.hasMoreElements())
                root = (String)e.nextElement();
                    sdCardPresent = true;



Perhaps you have connected the BB to a PC and the SD Card is now in mass storage mode?  Or perhaps the SD Card has dies?