java.util.zip.ZipException: error in opening zip file

Jenkins JIRA | Henrik Skupin | 5 years ago
  1. 0

    Starting Jenkins via the war file and supplying a path as argument for the application, causes an exception and recursively deletes all files from the current folder. Steps: 1. Download the jenkins.war file from https://jenkins-ci.org/ 2. Start jenkins via: 'java -jar jenkins.war ./' 3. Stop the application with Ctrl+C After step 3 check the current folder and notice that all files and sub folders have been deleted. The exception I get is: $ java -jar jenkins.war ./ Running from: /Volumes/data/jenkins/jenkins.war webroot: $user.home/.jenkins [Winstone 2011/12/07 17:09:05] - Beginning extraction from war file [Winstone 2011/12/07 17:09:05] - Error initializing web application: prefix [] java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:135) at java.util.jar.JarFile.<init>(JarFile.java:99) at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:253) at winstone.HostConfiguration.<init>(HostConfiguration.java:73) at winstone.HostGroup.initHost(HostGroup.java:85) at winstone.HostGroup.<init>(HostGroup.java:45) at winstone.Launcher.<init>(Launcher.java:197) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at Main._main(Main.java:268) at Main.main(Main.java:96) [Winstone 2011/12/07 17:09:05] - HTTP Listener started: port=8080 [Winstone 2011/12/07 17:09:05] - AJP13 Listener started: port=8009 [Winstone 2011/12/07 17:09:05] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Whatever argument is specified it has to be handled gracefully and should not result in deleting whole folders on disk. I think that's a critical issue and that I was lucky to run the war file from a newly created 'jenkins' sub folder. Otherwise I would have wiped out my whole data partition.

    Jenkins JIRA | 5 years ago | Henrik Skupin
    java.util.zip.ZipException: error in opening zip file
  2. 0

    Starting Jenkins via the war file and supplying a path as argument for the application, causes an exception and recursively deletes all files from the current folder. Steps: 1. Download the jenkins.war file from https://jenkins-ci.org/ 2. Start jenkins via: 'java -jar jenkins.war ./' 3. Stop the application with Ctrl+C After step 3 check the current folder and notice that all files and sub folders have been deleted. The exception I get is: $ java -jar jenkins.war ./ Running from: /Volumes/data/jenkins/jenkins.war webroot: $user.home/.jenkins [Winstone 2011/12/07 17:09:05] - Beginning extraction from war file [Winstone 2011/12/07 17:09:05] - Error initializing web application: prefix [] java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:135) at java.util.jar.JarFile.<init>(JarFile.java:99) at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:253) at winstone.HostConfiguration.<init>(HostConfiguration.java:73) at winstone.HostGroup.initHost(HostGroup.java:85) at winstone.HostGroup.<init>(HostGroup.java:45) at winstone.Launcher.<init>(Launcher.java:197) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at Main._main(Main.java:268) at Main.main(Main.java:96) [Winstone 2011/12/07 17:09:05] - HTTP Listener started: port=8080 [Winstone 2011/12/07 17:09:05] - AJP13 Listener started: port=8009 [Winstone 2011/12/07 17:09:05] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Whatever argument is specified it has to be handled gracefully and should not result in deleting whole folders on disk. I think that's a critical issue and that I was lucky to run the war file from a newly created 'jenkins' sub folder. Otherwise I would have wiped out my whole data partition.

    Jenkins JIRA | 5 years ago | Henrik Skupin
    java.util.zip.ZipException: error in opening zip file
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    error in opening zip file

    Google Groups | 5 years ago | André Nishimura
    java.util.zip.ZipException: error in opening zip file

  1. cesarnog 291 times, last 2 months ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    error in opening zip file

    at java.util.zip.ZipFile.open()
  2. Java RT
    JarFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:127)
    3. java.util.jar.JarFile.<init>(JarFile.java:135)
    4. java.util.jar.JarFile.<init>(JarFile.java:99)
    4 frames
  3. winstone
    Launcher.main
    1. winstone.HostConfiguration.getWebRoot(HostConfiguration.java:253)
    2. winstone.HostConfiguration.<init>(HostConfiguration.java:73)
    3. winstone.HostGroup.initHost(HostGroup.java:85)
    4. winstone.HostGroup.<init>(HostGroup.java:45)
    5. winstone.Launcher.<init>(Launcher.java:197)
    6. winstone.Launcher.main(Launcher.java:398)
    6 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Unknown
    Main.main
    1. Main._main(Main.java:268)
    2. Main.main(Main.java:96)
    2 frames