Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13609

Possible java.nio.file.FileAlreadyExistsException when trying to save a job status



    • Bug
    • Resolution: Fixed
    • Major
    • 10.7-rc-1
    • 8.2
    • None
    • XE 8.2, configured on MySQL 5.7 (with a new database), using Windows 10 with 64-bit, on Chrome 51 - private mode
    • Unknown
    • N/A
    • N/A


      Tested on a clean instance of XE 8.2, configured on MySQL 5.7 (with a new database), using Windows 10 with 64-bit, on Chrome 51 - private mode

      Actual result:

      • I opened the instance, installed all the features through DW and got in the end the XWiki Main page displayed in browser.
      • In that moment, it was triggered in the console this warning:
        2016-07-29 11:08:41,018 [Job status serializer] WARN  o.x.j.i.DefaultJobStatusStore  - Failed to save job status [org.xwiki.extension.distribution.internal.job.FarmDistributionJobStatus@103134b]
        java.nio.file.FileAlreadyExistsException: C:\Users\Irina\AppData\Local\Temp\status.xml3100663649301281699.tmp -> data\jobs\status\distribution\status.xml
                at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
                at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
                at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
                at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
                at java.nio.file.Files.move(Unknown Source)
                at org.xwiki.job.internal.JobStatusSerializer.write(JobStatusSerializer.java:87)
                at org.xwiki.job.internal.DefaultJobStatusStore.saveJobStatus(DefaultJobStatusStore.java:410)
                at org.xwiki.job.internal.DefaultJobStatusStore.access$100(DefaultJobStatusStore.java:63)
                at org.xwiki.job.internal.DefaultJobStatusStore$JobStatusSerializerRunnable.run(DefaultJobStatusStore.java:242)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
      • This warning doesn`t stop you to perform any action you want in XWiki.
      • If I restart the instance and open it in the browser, the warning will not be displayed anymore.
      • The warning appears only at a first access of the instance in browser after you made the installation with DW.

      Expected result:

      • I expect to not see warnings like this in the console when I access the instance for the first time. Even if apparently no impact was noticed on the functionality of XWiki, user could think that something was wrong during the install because the message of the warning: " Failed to save job status"




            tmortagne Thomas Mortagne
            ihrehorciuc Irina Hrehorciuc
            0 Vote for this issue
            5 Start watching this issue