we are running jar using batch file as window service and place xml files in c:/processed
directory;
if xml has an errorneous format then move it to error folder; we are using below method to move the file to error folder but getting below exception.
I think when the process is running its not able to move the file to error folder .
FileUtils.moveToDirectory("a.xml", "c:/processed/error", false);
exception in movedErrorFolder: Failed to delete original file 'c:/processed/a.xml' after copy to 'c:/processed/error/a.xml'