The company has a requirement to read excel on a regular basis to obtain the BOM structure. After reading it, the excel file needs to be moved to another folder.
1. When using the Files.move(source, target, options) method, the error is reported as follows
java.nio.file.AccessDeniedException: D:\DBdate\MID\DOC\PT038\20210726\CXDA-20016-0010 pack-410x180x180.xlsx -> D:\DBdate\MID\DOC\readedexcel\CXDA-20016-0010 pack-410x180x180.xlsx
It should be caused by Tomcat not having file delete permissions
2. Solution: Set the Tomcat service to log in with the local system account
Similar Posts:
- Php7 + phpexcel table export failed net:: err_ INVALID_ RESPONSE
- Python FAQ – error using openpyxl module: zipfile.BadZipFile : File is not a zip file
- Error reporting when installing r reference rjava on MAC
- [Solved] Java read excel file unable to recognize ole stream error
- Linux Install Tomcat Error: service tomcat does not support chkconfig
- After modifying Tomcat’s server.xml, the Tomcat deployment project reported an error: removing observe files from server… Could not clean server
- Python uses xlwt length limit to report errors
- Several common error reporting and startup problems of Tomcat
- Ubuntu Tomcat Server:insserv: warning: script ‘tomcat’ missing LSB tags and overrides
- Sudo starts Tomcat and reports an error. There is no Java environment