java.util.zip.ZipException: archive is not a ZIP archive

Jenkins JIRA | gene lzr | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I see many of these errors in the log: {code}Mar 07, 2014 8:32:51 PM SEVERE jenkins.InitReactorRunner$1 onTaskFailed Failed Inspecting plugin /var/lib/jenkins/plugins/ssh-slaves.jpi java.io.IOException: Failed to expand /var/lib/jenkins/plugins/ssh-slaves.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:429) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:126) at hudson.PluginManager$1$3$1.run(PluginManager.java:236) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: Error while expanding /var/lib/jenkins/plugins/ssh-slaves.jpi java.util.zip.ZipException: archive is not a ZIP archive at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132) at hudson.ClassicPluginStrategy.unzipExceptClasses(ClassicPluginStrategy.java:501) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:426) ... 10 more Caused by: java.util.zip.ZipException: archive is not a ZIP archive at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:481) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:320) at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:186) at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170) ... 13 more{code} As a result the plugins don't load. All their dependencies don't load too. No errors are displayed in the frontend which is extremely confusing.

    Jenkins JIRA | 3 years ago | gene lzr
    java.util.zip.ZipException: archive is not a ZIP archive
  2. 0

    I see many of these errors in the log: {code}Mar 07, 2014 8:32:51 PM SEVERE jenkins.InitReactorRunner$1 onTaskFailed Failed Inspecting plugin /var/lib/jenkins/plugins/ssh-slaves.jpi java.io.IOException: Failed to expand /var/lib/jenkins/plugins/ssh-slaves.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:429) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:126) at hudson.PluginManager$1$3$1.run(PluginManager.java:236) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: Error while expanding /var/lib/jenkins/plugins/ssh-slaves.jpi java.util.zip.ZipException: archive is not a ZIP archive at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132) at hudson.ClassicPluginStrategy.unzipExceptClasses(ClassicPluginStrategy.java:501) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:426) ... 10 more Caused by: java.util.zip.ZipException: archive is not a ZIP archive at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:481) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:320) at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:186) at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170) ... 13 more{code} As a result the plugins don't load. All their dependencies don't load too. No errors are displayed in the frontend which is extremely confusing.

    Jenkins JIRA | 3 years ago | gene lzr
    java.util.zip.ZipException: archive is not a ZIP archive
  3. 0

    plugin.txt fails to load git-client

    GitHub | 2 years ago | davehun
    java.util.zip.ZipException: archive is not a ZIP archive
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.zip.ZipException

      archive is not a ZIP archive

      at org.apache.tools.zip.ZipFile.positionAtCentralDirectory()
    2. Ant
      Expand.expandFile
      1. org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:481)
      2. org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:320)
      3. org.apache.tools.zip.ZipFile.<init>(ZipFile.java:186)
      4. org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170)
      4 frames