• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • None
    • Platform: All, OS: All

      I downloaded the 1.287 release and tried to start hudson with "java -jar
      hudson.war". The result is this stacktrace:

      Exception in thread "main" java.lang.IllegalStateException: zip file closed
      at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)
      at java.util.zip.ZipFile.getEntry(ZipFile.java:251)
      at java.util.jar.JarFile.getEntry(JarFile.java:204)
      at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:90)
      at
      sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:112)
      at
      sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124)
      at java.net.URL.openStream(URL.java:1007)
      at Main.extractFromJar(Main.java:255)
      at Main.main(Main.java:87)

      This happens both on my Windows Box as well as on my OSX machine.

          [JENKINS-3200] Can not launch hudson.war

          I have the same result with a JDK5. I think it's your case.
          Download and use Java6. It's solving the problem

          With "C:\tools\jdk1.5.0_14\bin\java.exe -jar hudson-1.287.war", I have the same
          error but with "C:\tools\jdk1.6.0_10\bin\java.exe -jar hudson-1.287.war", it
          works well!

          Gregory Boissinot added a comment - I have the same result with a JDK5. I think it's your case. Download and use Java6. It's solving the problem With "C:\tools\jdk1.5.0_14\bin\java.exe -jar hudson-1.287.war", I have the same error but with "C:\tools\jdk1.6.0_10\bin\java.exe -jar hudson-1.287.war", it works well!

          irichter added a comment -

          Thanks for the info but we only have JDK1.5 available on our MacOSX
          buildmachines. And currently we can't update the machines since we are in the
          middle of our release cycle. I propose/wish that JDK6 is not a requirement to
          run hudson.

          irichter added a comment - Thanks for the info but we only have JDK1.5 available on our MacOSX buildmachines. And currently we can't update the machines since we are in the middle of our release cycle. I propose/wish that JDK6 is not a requirement to run hudson.

          mdonohue added a comment -
              • Issue 3219 has been marked as a duplicate of this issue. ***

          mdonohue added a comment - Issue 3219 has been marked as a duplicate of this issue. ***

          mdonohue added a comment -

          switch to the core subcomponent

          mdonohue added a comment - switch to the core subcomponent

          Jesse Glick added a comment -

          Might be related to recent changes I made in this class, investigating...

          Jesse Glick added a comment - Might be related to recent changes I made in this class, investigating...

          Jesse Glick added a comment -

          Regression.

          Jesse Glick added a comment - Regression.

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/extras/executable-war/src/main/java/Main.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16013
          Log:
          [FIXED JENKINS-3200] JarFile.close mistakenly called, which affected JDK 5 clients only.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/extras/executable-war/src/main/java/Main.java http://fisheye4.cenqua.com/changelog/hudson/?cs=16013 Log: [FIXED JENKINS-3200] JarFile.close mistakenly called, which affected JDK 5 clients only.

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/main/war/pom.xml
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16017
          Log:
          JENKINS-3200 Using executable-war-1.8.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/main/war/pom.xml http://fisheye4.cenqua.com/changelog/hudson/?cs=16017 Log: JENKINS-3200 Using executable-war-1.8.

            jglick Jesse Glick
            irichter irichter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: