Hi
Reading file into inputStream is sporadically throwing FileNotFoundException((Permission denied).I am using the java.io.inputStream to read the file to the Stream
InputStream inputStream = new FileInputStream(file);
The code is running in multithreaded enviroment,where at any time only a single
thread had access to a file.But at times specifically when the more number of files are been processed at the same time the above piece of code is throwing FileNotFoundException(Permission denied).
The File is not a directory,it does exists.And the user has permissions to read the file.When I process the same file again without any change in the code it works through.
Can not enough JVM space results in a FileNotfound Exception?
Please advice.