Details
-
Bug
-
Status: Done
-
Major
-
Resolution: Done
-
language 0.15.1
-
None
-
Windows 10 x/64
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: C:\Program Files\apache-maven-3.2.5\bin\..
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_40\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"Windows 10 x/64 Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00) Maven home: C:\Program Files\apache-maven-3.2.5\bin\.. Java version: 1.8.0_40, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_40\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"
Description
Building https://dist.apache.org/repos/dist/dev/incubator/taverna/source/taverna-language-0.15.1-incubating-RC2/ on Windows using
mvn clean install -T2.0C
(e.g. 8 concurrent threads)
fails with:
Running org.apache.taverna.robundle.validator.ValidatorTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.466 sec <<< FAILURE! - in org.apache.taverna.robundle.validator.ValidatorTest test(org.apache.taverna.robundle.validator.ValidatorTest) Time elapsed: 0.162 sec <<< ERROR! java.nio.file.FileSystemException: C:\Users\stain\AppData\Local\Temp\test6307194291383462110.bundle.zip: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at org.apache.taverna.robundle.validator.ValidatorTest.test(ValidatorTest.java:54) Results : Tests in error: ValidatorTest.test:54 ยป FileSystem C:\Users\stain\AppData\Local\Temp\test63071... Tests run: 98, Failures: 0, Errors: 1, Skipped: 1
Some kind of concurrency issue deep inside java.io.File? Suggestion is to update test to use java.nio.file.Path which avoids the need to delete a temporary file for making a temporary directory.
Attachments
Issue Links
- blocks
-
TAVERNA-907 Vote for taverna-language/taverna-osgi release on dev@taverna
- Done