Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47233

Maven version detection fails on same agent with 'java.lang.IllegalStateException: zip file closed' exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • maven-plugin
    • Jenkins
      Version - 2.32.3
      OS - Ubuntu 16.04 x64
      Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

      Slave - Windows 7 Enterprise
      Java SE Development Kit 8u121 (Configured in jenkins Global Tool Configuration)

      Have setup 4 jenkins jobs to run on the same node, and a job that triggers all 4 jobs at the same time

      job-parent -> maven-job1
      maven-job2
      maven-job3
      maven-job4

      When Running job-parent almost every time 2-3 jobs out of 4 fail at checking out the code with the following exception:
       

      Started by upstream project "SanityLinux-UBUNTU14.04-D1-EXT4" build number 4
      originally caused by:
       Started by user Administrator
      Building remotely on Sanity-Pool01-AutoSlaveLinux (windows) in workspace c:\jenkins\workspace\SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4
      Fetching changes from the remote Git repository
      Checking out Revision 01b711db99104fcdd4a0946ac1ad5e5ee8d248dc (origin/7.25)
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.IllegalStateException: zip file closed
      	at java.util.zip.ZipFile.ensureOpen(Unknown Source)
      	at java.util.zip.ZipFile.getEntry(Unknown Source)
      	at java.util.jar.JarFile.getEntry(Unknown Source)
      	at sun.net.www.protocol.jar.URLJarFile.getEntry(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
      	at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:212)
      	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:69)
      	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:336)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:94)
      	at java.lang.Thread.run(Unknown Source)
      	at ......remote call to Channel to /10.11.6.120(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1537)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      	at hudson.remoting.Channel.call(Channel.java:822)
      	at hudson.FilePath.act(FilePath.java:1080)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:642)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1728)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      project=hudson.maven.MavenModuleSet@44df909[SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4]
      project.getModules()=[hudson.maven.MavenModule@197eae6e[SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4/com.winmagic.qa:automation-tests][SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4/com.winmagic.qa:automation-tests][relativePath:]]
      project.getRootModule()=hudson.maven.MavenModule@197eae6e[SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4/com.winmagic.qa:automation-tests][SanityLinux-UBUNTU14.04-D1-EXT4-D2-LVM-EXT4/com.winmagic.qa:automation-tests][relativePath:]
      FATAL: zip file closed
      java.lang.IllegalStateException: zip file closed
      	at java.util.zip.ZipFile.ensureOpen(Unknown Source)
      	at java.util.zip.ZipFile.getEntry(Unknown Source)
      	at java.util.jar.JarFile.getEntry(Unknown Source)
      	at sun.net.www.protocol.jar.URLJarFile.getEntry(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
      	at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:212)
      	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:69)
      	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:336)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:94)
      	at java.lang.Thread.run(Unknown Source)
      	at ......remote call to Channel to /10.11.6.120(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1537)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      	at hudson.remoting.Channel.call(Channel.java:822)
      	at hudson.FilePath.act(FilePath.java:1080)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:642)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1728)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE
      

            oleg_nenashev Oleg Nenashev
            andrei_caragheorghii Andrei Caragheorghii
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: