ava.io.IOException: Failed to dynamically deploy this plugin

Jenkins JIRA | Sylwia Kludacz | 2 years ago
  1. 0

    I've been trying to install pmd plugin and checkstyle plugin on my Jenkins server for a while using different method (automatic, manual) without a success. In both cases I'm getting the same error: ava.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1322) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1121) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.FileSystemException: D:\Jenkins\plugins\checkstyle\WEB-INF\lib\annotations-2.0.0.jar: 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.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.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:522) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:166) at hudson.PluginManager.dynamicLoad(PluginManager.java:448) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1318) ... 6 more This was originally tried on Jenkins 1.565.2 and then I upgraded to Jenkins 1.608 hoping this will resolve the issue but it didn't. I also tried to install previous version of checkstyle plugin but no luck with that either. I used Process Explorer to see what's blocking annotations-2.0.0.jar but it only shows java. What could be the issue here? The Static Analysis Utilities plugin is installed (1.71).

    Jenkins JIRA | 2 years ago | Sylwia Kludacz
    ava.io.IOException: Failed to dynamically deploy this plugin
  2. 0

    I've been trying to install pmd plugin and checkstyle plugin on my Jenkins server for a while using different method (automatic, manual) without a success. In both cases I'm getting the same error: ava.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1322) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1121) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.FileSystemException: D:\Jenkins\plugins\checkstyle\WEB-INF\lib\annotations-2.0.0.jar: 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.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.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:522) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:166) at hudson.PluginManager.dynamicLoad(PluginManager.java:448) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1318) ... 6 more This was originally tried on Jenkins 1.565.2 and then I upgraded to Jenkins 1.608 hoping this will resolve the issue but it didn't. I also tried to install previous version of checkstyle plugin but no luck with that either. I used Process Explorer to see what's blocking annotations-2.0.0.jar but it only shows java. What could be the issue here? The Static Analysis Utilities plugin is installed (1.71).

    Jenkins JIRA | 2 years ago | Sylwia Kludacz
    ava.io.IOException: Failed to dynamically deploy this plugin
  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 | 2 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

    Root Cause Analysis

    1. java.nio.file.FileSystemException

      D:\Jenkins\plugins\checkstyle\WEB-INF\lib\annotations-2.0.0.jar: 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.NativeMethodAccessorImpl.invoke0(Native Method)
      8. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      9. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      10. java.lang.reflect.Method.invoke(Unknown Source)
      10 frames
    3. Hudson
      UpdateCenter$DownloadJob.run
      1. hudson.Util.deleteFile(Util.java:247)
      2. hudson.Util.deleteRecursive(Util.java:310)
      3. hudson.Util.deleteContentsRecursive(Util.java:212)
      4. hudson.Util.deleteRecursive(Util.java:301)
      5. hudson.Util.deleteContentsRecursive(Util.java:212)
      6. hudson.Util.deleteRecursive(Util.java:301)
      7. hudson.Util.deleteContentsRecursive(Util.java:212)
      8. hudson.Util.deleteRecursive(Util.java:301)
      9. hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:522)
      10. hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:166)
      11. hudson.PluginManager.dynamicLoad(PluginManager.java:448)
      12. hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1318)
      13. hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1121)
      13 frames
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      3 frames
    5. Hudson :: Remoting Layer
      AtmostOneThreadExecutor$Worker.run
      1. hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame