Hi Frederic,
I was able to reproduce that on 7.1.3 as well, but I don’t recall seeing it when I was testing on 8.2.
What seems to be happening is that the file.delete() API call is returning false which means the JVM couldn’t delete the file because some object is still referencing it or something.
I tried a few things to try to get the JVM to release the file locks but the problem still happened sometimes. If you wait long enough for JVM garbage collector to run, it seems to unlock the file. But waiting isn’t a good solution either.
I’ve attached an updated version of the provider that implements a workaround by detecting when this happens and just moves the good attachments to another temp folder and abandons the bad temp folder.
Hopefully that will work for your use case.
Regards,
Eric
LocalTempAttachmentProvider.java (14.9 KB)
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS