Skip to main content

Getting FileNotFouxception Permission Denied

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-10-29

My java code copied zip file from FTP to unix box and extract. Reading the files in the zip as inputstream

Inputstream stream = new FileInputStream ( filePath );

The process continuous running for long days some time I am getting FileNotFoundException Permission Denied.

I am not understand why specific error Permission Denied.

File Extraction and Reading File in the same thread.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-06-07

If you are using linux. create a cron which always change all the file permission to your group or username.

The error you are getting is either file is locked or you dont have enough permission.