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: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _
Accepted Solution

net.rim.device.api.io.file.FileIOException: File system error

I am getting this error "net.rim.device.api.io.file.FileIOException: File system error".

 

FileConnection fc = null;
        try {
            fc = (FileConnection) Connector.open(path);
        } catch(Exception ex) {
            System.out.println(ex.getMessage());
            ex.printStackTrace();
        }

 

Can any one suggest why its so. Thanks in advance

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

Re: net.rim.device.api.io.file.FileIOException: File system error

Check your path - for example are you specifying SD Card and you don't actually have an SD Card. 

 

Im the Simulator, you can specify a directory as the location of your Simulated SD Card, but you do have to set this up yourself.  Check the Simulate menu - the Windows menu associated with the Simulator PC application. 

Developer
Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _

Re: net.rim.device.api.io.file.FileIOException: File system error

[ Edited ]

I insert the SD card and still have same problem.

 

My Path is : file:///SDCard/BlackBerry/pictures/

 

File system error (1003)

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

Re: net.rim.device.api.io.file.FileIOException: File system error

Search the forum for that error code and I think you will find it typically means SD Card not present.

 

Check you card is present by using the File Application.  If it is, then you have a problem with your path. 

Developer
Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _

Re: net.rim.device.api.io.file.FileIOException: File system error

I need to debug the application and picking photo from SD card. Its not allowing to me . Is there anyone to do that.

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

Re: net.rim.device.api.io.file.FileIOException: File system error

"Its not allowing to me" - unusual, what is it actually doing?

 

I recommend that you debug this code initially on the Simulator.  Add a simulated SD Card and try it there.  You should find easier than debugging on device. 

 

Once you have your code working on the Simulator, then try it on device.