[
https://issues.apache.org/jira/browse/TAVERNA-919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154291#comment-15154291
]
Stian Soiland-Reyes commented on TAVERNA-919:
---------------------------------------------
Reproducable also with newer Maven/Java:
{code}
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T16:41:47+00:00)
Maven home: C:\Program Files\apache-maven-3.3.9\bin\..
Java version: 1.8.0_74, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_74\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
{code}
> robundle.ValidatorTest fails with cannot access the file because it is being
> used by another process
> ----------------------------------------------------------------------------------------------------
>
> Key: TAVERNA-919
> URL: https://issues.apache.org/jira/browse/TAVERNA-919
> Project: Apache Taverna
> Issue Type: Bug
> Components: Taverna Language
> Affects Versions: language 0.15.1
> Environment: 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"
> Reporter: Stian Soiland-Reyes
> Assignee: Stian Soiland-Reyes
> Fix For: language 0.15.1
>
>
> Building
> https://dist.apache.org/repos/dist/dev/incubator/taverna/source/taverna-language-0.15.1-incubating-RC2/
> on Windows using
> {code}
> mvn clean install -T2.0C
> {code}
> (e.g. 8 concurrent threads)
> fails with:
> {code}
> 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
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)