java.util.zip.ZipException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Jenkins version 1.568,after update to 1.569,issue still remains. It's a little bit complicated to reproduce the bug. The Jenkins server we use is behind the firewall with limited access to the internet.So one day our ops decide to update the plugin we use on a whim,when he re-login to check the status later,all plugin just vanished.Not just disappear from the plugin manager list,the plugin files don't exist on the system too. And here's some log: Jun 26, 2014 4:58:17 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Inspecting plugin /data/jenkins/plugins/cvs.jpi java.io.IOException: Failed to expand /data/jenkins/plugins/cvs.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:484) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:150) at hudson.PluginManager$1$3$1.run(PluginManager.java:240) 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:885) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: Error while expanding /data/jenkins/plugins/cvs.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:556) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:481) ... 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
    via by visual zhang,
  • Jenkins version 1.568,after update to 1.569,issue still remains. It's a little bit complicated to reproduce the bug. The Jenkins server we use is behind the firewall with limited access to the internet.So one day our ops decide to update the plugin we use on a whim,when he re-login to check the status later,all plugin just vanished.Not just disappear from the plugin manager list,the plugin files don't exist on the system too. And here's some log: Jun 26, 2014 4:58:17 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Inspecting plugin /data/jenkins/plugins/cvs.jpi java.io.IOException: Failed to expand /data/jenkins/plugins/cvs.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:484) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:150) at hudson.PluginManager$1$3$1.run(PluginManager.java:240) 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:885) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: Error while expanding /data/jenkins/plugins/cvs.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:556) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:481) ... 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
    via by visual zhang,
  • When trying to install "DRY Plugin", the installation of its dependency "Static Code Analysis Plug-ins" failed. This is the error message: hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1138) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:956) 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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.util.IOException2: Failed to expand C:\Documents and Settings\ADDLabs\.jenkins\plugins\analysis-core.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:399) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:352) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1134) ... 7 more Caused by: Error while expanding C:\Documents and Settings\ADDLabs\.jenkins\plugins\analysis-core.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.explode(ClassicPluginStrategy.java:397) ... 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) ... 12 more
    via by Tácio Diogo,
  • When installing Email-ext plugin, the downloaded jpi file is a HTML file saying access denied. Jenkins would try to unzip it and fail. The detailed error messages are: Email-ext plugin Failure - hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1176) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:987) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: hudson.util.IOException2: Failed to expand /var/lib/jenkins/plugins/email-ext.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:399) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:369) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1172) ... 7 more Caused by: Error while expanding /var/lib/jenkins/plugins/email-ext.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.explode(ClassicPluginStrategy.java:397) ... 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) ... 12 more Other plugins installs fine, so it is not likely to be the problem of the http proxy. The downloaded email-ext.jpi is attached.
    via by Victor Chen,
  • When trying to install "DRY Plugin", the installation of its dependency "Static Code Analysis Plug-ins" failed. This is the error message: hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1138) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:956) 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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.util.IOException2: Failed to expand C:\Documents and Settings\ADDLabs\.jenkins\plugins\analysis-core.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:399) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:352) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1134) ... 7 more Caused by: Error while expanding C:\Documents and Settings\ADDLabs\.jenkins\plugins\analysis-core.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.explode(ClassicPluginStrategy.java:397) ... 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) ... 12 more
    via by Tácio Diogo,
    • 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:556) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:481) 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) ... 4 more
    No Bugmate found.