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

[jenkins][build-with-parameters]java.lang.IllegalStateException: zip file closed

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I tried installing the plugin(download and install after restart.. when download completed, ticked checkbox to restart) : "build with parameter" !

      When jenkins was restarting, instead of restarting back, it is showing the following error: 

      java.lang.IllegalStateException: zip file closed
      	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669)
      	at java.util.zip.ZipFile.getEntry(ZipFile.java:309)
      	at java.util.jar.JarFile.getEntry(JarFile.java:240)
      	at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
      	at org.apache.naming.resources.WebDirContext.lookupFromJars(WebDirContext.java:332)
      	at org.apache.naming.resources.WebDirContext.getAttributes(WebDirContext.java:299)
      	at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:787)
      	at org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1533)
      	at org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1456)
      	at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:274)
      	at org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromRepositories(WebappClassLoader.java:2803)
      	at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2753)
      	at org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2647)
      	at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1063)
      	at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1620)
      	at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1501)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:396)
      	at hudson.model.Hudson.<init>(Hudson.java:86)
      	at hudson.model.Hudson.<init>(Hudson.java:82)
      	at hudson.WebAppMain$3.run(WebAppMain.java:233)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:250)

      I checked the logs and found that it is related to "AdjunctManager not installed for the application " error. I've attached the stacktrace.

      I checked few exiting ticket but didn't any solution for this.

      Please help me out in resolving this. Thank you!

      PS: I am running jenkins on "payara-micro"!

        Attachments

          Activity

          Hide
          sugonyak_ivan Ivan Sugonyak added a comment -

          Which way have you installed this plugin - via Jenkins Plugin Manager or uploaded it manually as .hpi file?

          Show
          sugonyak_ivan Ivan Sugonyak added a comment - Which way have you installed this plugin - via Jenkins Plugin Manager or uploaded it manually as .hpi file?
          Hide
          thanvikaran01 Karan Thanvi added a comment -

          via Jenkins Plugin Manager.

          Show
          thanvikaran01 Karan Thanvi added a comment - via Jenkins Plugin Manager.
          Hide
          thanvikaran01 Karan Thanvi added a comment - - edited

          Could resolve the issue by doing this : 

          • Delete the .jpi file of the plugin.
          • Kill the jenkins process (the container process actually)
          • Re-deploy the jenkins artifact.

          PS: This will require you to re-install the plugin (which is fine!).

          This worked in my case and I also re-installed the plugin.. seems it is installed successfully.

           

          Show
          thanvikaran01 Karan Thanvi added a comment - - edited Could resolve the issue by doing this :  Delete the .jpi file of the plugin. Kill the jenkins process (the container process actually) Re-deploy the jenkins artifact. PS: This will require you to re-install the plugin (which is fine!). This worked in my case and I also re-installed the plugin.. seems it is installed successfully.  

            People

            Assignee:
            thanvikaran01 Karan Thanvi
            Reporter:
            thanvikaran01 Karan Thanvi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: