java - Getting Error while overriding excel(xls) file (The requested operation cannot be performed on a file with a user-mapped section open) -




workbook workbook = new hssfworkbook(); // //other stuff here fileoutputstream outputstream = new fileoutputstream(location); workbook.write(outputstream); outputstream.close(); 

first time code works fine, need override file same name when user request so.
when program enters in loop again, give following error:

the requested operation cannot performed on file user-mapped section open 

and when try open file manually, give me pop showing file locked.





wiki

Comments

Popular posts from this blog

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

Asterisk AGI Python Script to Dialplan does not work -