Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Coldfusion 11 - java.nio.file.FileSystemException on cffile copy

$
0
0

Hi,

I got randomly an error on a cffile copy :

 

java.nio.file.FileSystemException: D:\netprint\Images\C01332\VISUELHD\SG_OPTEFR_4_Concert.jpg -> D:\netprint\DOC_demandes\ReqSG_00331742\BIB\SG_OPTEFR_4_Concert.jpg: The process cannot access the file because it is being used by another process.

 

However my code is executing copy only if target file doesn't exist :

 

<cfif not fileexists("#DEMrepert#/BIB/#NomImageHD#")>

     <cffile action="copy"   source="#BIBrepertHD##NomImageHD#"    destination="#DEMrepert#/BIB">

</cfif>

 

I am running Coldfusion 11 on windows 2012 R2 server with Java 8 (jdk1.8.0_66).

 

As destination file doesn't exist, it looks like issue is on source file being locked by another process. Is there a way to check inside coldfusion if source file is locked by another process ?

 

Regards,

Pierre.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>