This exception coming may be because of, for reading data from filediscriptor process is different as that file was open through another process.If different processs try to read filediscriptor that belongs to another process,then while reading it will throw exception.