The problem is that the temp file can't be renamed because an empty file
with the destination name is created and left there, blocking the moveTo
from succeeding.
The problem is hidden because the ultimate renameTo call in WeakDataFile
simply logs the failure without letting the caller know that the rename
failed.
May 12, 2015 11:40:50 AM org.jvnet.mimepull.WeakDataFile renameTo
INFO: File
C:\Users\SCOTT~1.PAL\AppData\Local\Temp\MIME9174014175637264696.tmp was not
moved to C:\Users\SCOTT~1.PAL\AppData\Local\Temp\rep818068880122345050tmp
The result is that the web service, with a parameter declared as:
@FormDataParam("file") File file, is always given a reference to an empty
temp file.