08-31-2009 06:52 AM
I am getting an exception of FileIOException: File System Error at fileConnection.delete() line.
FILE_PATH is obtained from fileJournalChanged() method when a file gets added.
I am unable to understand why is this happening. Because SOPs are revealing paths correctly.
here's the piece of code: -
FileConnection fileConnection = null;
if ( FILE_PATH != null )
// Open file connection
fileConnection = ( FileConnection ) Connector.open( FILE_PATH );
if ( fileConnection.exists() )
// Delete file at path
System.out.println("file connection deleted");
// Close connection
fileConnection = null;
catch (Exception ex)
System.out.println("exception in deleting file in parser:"+ex.toString());