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.

  • Can't seem to get my project to deploy a snapshot to nexus. I keep getting the following error message in the nexus logs: 2011-09-27 13:30:32 DEBUG [ost-1-thread-12] - o.s.n.i.DefaultInde~ - The ArtifactContext created from file is fine, continuing. 2011-09-27 13:30:32 INFO [ost-1-thread-12] - o.a.m.i.c.MavenArch~ - Failed to parse Maven artifact /home/tomcat/sonatype-work/nexus/storage/snapshots/com/nolij/login/NolijLogin/0.0.1-SNAPSHOT/NolijLogin-0.0.1-20110927.132958-19.jar due to exception: 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.zip.ZipFile.<init>(ZipFile.java:144) at org.apache.maven.index.util.zip.JavaZipFileHandle.<init>(JavaZipFileHandle.java:42) at org.apache.maven.index.util.zip.ZipFacade.getZipHandle(ZipFacade.java:61) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.checkMavenArchetype(MavenArchetypeArtifactInfoIndexCreator.java:85) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.populateArtifactInfo(MavenArchetypeArtifactInfoIndexCreator.java:69) at org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184) at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73) at org.apache.maven.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:370) at org.sonatype.nexus.index.DefaultIndexerManager.addItemToIndex(DefaultIndexerManager.java:661) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspectForIndexerManager(IndexerManagerEventInspector.java:74) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspect(IndexerManagerEventInspector.java:60) at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157) 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) 1) All other artifacts upload properly (sources, pom, checksums, etc) 2) I have verified that the jar is a valid jar before uploaded to nexus 3) maven gives the following message which implies upload success: [INFO] Retrieving previous build number from nexus Uploading: https://dev.nolij.com/nexus/content/repositories/snapshots/com/nolij/login/NolijLogin/0.0.1-SNAPSHOT/NolijLogin-0.0.1-20110927.132958-19-sources.jar 15 KB uploaded at 180.3 KB/sec [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------
    via by Sean Langford,
  • Can't seem to get my project to deploy a snapshot to nexus. I keep getting the following error message in the nexus logs: 2011-09-27 13:30:32 DEBUG [ost-1-thread-12] - o.s.n.i.DefaultInde~ - The ArtifactContext created from file is fine, continuing. 2011-09-27 13:30:32 INFO [ost-1-thread-12] - o.a.m.i.c.MavenArch~ - Failed to parse Maven artifact /home/tomcat/sonatype-work/nexus/storage/snapshots/com/nolij/login/NolijLogin/0.0.1-SNAPSHOT/NolijLogin-0.0.1-20110927.132958-19.jar due to exception: 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.zip.ZipFile.<init>(ZipFile.java:144) at org.apache.maven.index.util.zip.JavaZipFileHandle.<init>(JavaZipFileHandle.java:42) at org.apache.maven.index.util.zip.ZipFacade.getZipHandle(ZipFacade.java:61) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.checkMavenArchetype(MavenArchetypeArtifactInfoIndexCreator.java:85) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.populateArtifactInfo(MavenArchetypeArtifactInfoIndexCreator.java:69) at org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184) at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73) at org.apache.maven.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:370) at org.sonatype.nexus.index.DefaultIndexerManager.addItemToIndex(DefaultIndexerManager.java:661) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspectForIndexerManager(IndexerManagerEventInspector.java:74) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspect(IndexerManagerEventInspector.java:60) at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157) 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) 1) All other artifacts upload properly (sources, pom, checksums, etc) 2) I have verified that the jar is a valid jar before uploaded to nexus 3) maven gives the following message which implies upload success: [INFO] Retrieving previous build number from nexus Uploading: https://dev.nolij.com/nexus/content/repositories/snapshots/com/nolij/login/NolijLogin/0.0.1-SNAPSHOT/NolijLogin-0.0.1-20110927.132958-19-sources.jar 15 KB uploaded at 180.3 KB/sec [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------
    via by Sean Langford,
  • GitHub comment 11#6598727
    via GitHub by uhafner
    ,
  • ZIPException when executing "ant debug"...
    via by Unknown author,
    • 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.zip.ZipFile.<init>(ZipFile.java:144) at org.apache.maven.index.util.zip.JavaZipFileHandle.<init>(JavaZipFileHandle.java:42) at org.apache.maven.index.util.zip.ZipFacade.getZipHandle(ZipFacade.java:61) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.checkMavenArchetype(MavenArchetypeArtifactInfoIndexCreator.java:85) at org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.populateArtifactInfo(MavenArchetypeArtifactInfoIndexCreator.java:69) at org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184) at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73) at org.apache.maven.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:370) at org.sonatype.nexus.index.DefaultIndexerManager.addItemToIndex(DefaultIndexerManager.java:661) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspectForIndexerManager(IndexerManagerEventInspector.java:74) at org.sonatype.nexus.events.IndexerManagerEventInspector.inspect(IndexerManagerEventInspector.java:60) at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157) 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)

    Users with the same issue

    davidvanlaatum
    89 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    58 more bugmates