# java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process.

Jenkins JIRA | Bob Balli | 2 years ago
1. 0

### I configured the java project for the automated build and initiated the build. The result was awesome successfully generated the artifact. I did change in my program and SCM initiated the build which resulted in below error. I thought it could be problem with the configuration so wanted to delete the project and configure again. Jenkins in not allowing me to delete the project and i am getting same error. I configured other project again by renaming. First build works find but after i am done with the changes and commit to SVN, SCM initiates build which is fine but it again fails with below error. Could you please help or let me know what can i do to fix it? Interesting observation: 1. I am getting this error on latest version of Jenkins installed on my local i.e 1.612. 2. Same configuration works properly on Jenkins 1.59x. I am not sure what could be a cause only difference between two version is that i have tried installing Subversion Feature on 1.6 on my local but i ended up with below error hence i am confident enough to install this plugin in production as its failing on my local. java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) at java.nio.file.Files.delete(Unknown Source) at sun.reflect.GeneratedMethodAccessor903.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:479) at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:414) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:407) at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:356) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1744) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

Jenkins JIRA | 2 years ago | Bob Balli
java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process.
2. 0

### I configured the java project for the automated build and initiated the build. The result was awesome successfully generated the artifact. I did change in my program and SCM initiated the build which resulted in below error. I thought it could be problem with the configuration so wanted to delete the project and configure again. Jenkins in not allowing me to delete the project and i am getting same error. I configured other project again by renaming. First build works find but after i am done with the changes and commit to SVN, SCM initiates build which is fine but it again fails with below error. Could you please help or let me know what can i do to fix it? Interesting observation: 1. I am getting this error on latest version of Jenkins installed on my local i.e 1.612. 2. Same configuration works properly on Jenkins 1.59x. I am not sure what could be a cause only difference between two version is that i have tried installing Subversion Feature on 1.6 on my local but i ended up with below error hence i am confident enough to install this plugin in production as its failing on my local. java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) at java.nio.file.Files.delete(Unknown Source) at sun.reflect.GeneratedMethodAccessor903.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:479) at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:414) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:407) at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:356) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1744) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

Jenkins JIRA | 2 years ago | Bob Balli
java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process.
3. 0

### Wont install ruby-runtime 0.12

GitHub | 3 years ago | SteveyPugs
hudson.util.IOException2: Failed to dynamically deploy this plugin
4. Speed up your debug routine!

Automated exception search integrated into your IDE

5. 0

### Не получается сгенерировать отчеты

GitHub | 3 years ago | LeXuZZ
java.nio.file.FileSystemException: C:\Jenkins\workspace\qa_windows7_firefox_19\allure9133943268468986192.tmp\repositories\com\fasterxml\jackson\core\jackson-annotations\2.3.0\jackson-annotations-2.3.0.jar: The process cannot access the file because it is being used by another process.
6. 0

### cant delete temp directory at windows slave

GitHub | 2 years ago | mavlyutov
java.nio.file.FileSystemException: \cygdrive\c\start\workspace\14.10_smoke_win_all\label\yabrowser-win7-ultimate-x64-ru\allure44038899178249473.tmp\repositories\com\fasterxml\jackson\core\jackson-annotations\2.3.0\jackson-annotations-2.3.0.jar: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом.
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

1. # java.nio.file.FileSystemException

<http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process.

at sun.nio.fs.WindowsException.translateToIOException()
2. Java RT
Method.invoke
1. sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
2. sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
3. sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
4. sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
5. sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
6. java.nio.file.Files.delete(Unknown Source)
7. sun.reflect.GeneratedMethodAccessor903.invoke(Unknown Source)
8. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
9. java.lang.reflect.Method.invoke(Unknown Source)
9 frames
3. Hudson
AbstractBuild$AbstractBuildExecution.defaultCheckout 1. hudson.Util.deleteFile(Util.java:247) 2. hudson.Util.deleteRecursive(Util.java:310) 3. hudson.Util.deleteContentsRecursive(Util.java:212) 4. hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:479)
5. hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:414) 6. hudson.FilePath.act(FilePath.java:991) 7. hudson.FilePath.act(FilePath.java:969) 8. hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:407) 9. hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:356) 10. hudson.model.AbstractProject.checkout(AbstractProject.java:1276) 11. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
11 frames
4. jenkins.scm
SCMCheckoutStrategy.checkout
1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
1 frame
5. Hudson
Run.execute
1. hudson.model.AbstractBuild\$AbstractBuildExecution.run(AbstractBuild.java:532)
2. hudson.model.Run.execute(Run.java:1744)
2 frames
6. Hudson Maven Embedder
MavenModuleSetBuild.run
1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
1 frame
7. Hudson
Executor.run
1. hudson.model.ResourceController.execute(ResourceController.java:98)
2. hudson.model.Executor.run(Executor.java:374)
2 frames