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

Sonatype JIRA | Sean Langford | 5 years ago
  1. 0

    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] ------------------------------------------------------------------------

    Sonatype JIRA | 5 years ago | Sean Langford
    java.util.zip.ZipException: error in opening zip file
  2. 0

    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] ------------------------------------------------------------------------

    Sonatype JIRA | 5 years ago | Sean Langford
    java.util.zip.ZipException: error in opening zip file
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception in thread "main" brut.androlib.AndrolibException

    GitHub | 2 years ago | GoogleCodeExporter
    brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
  5. 0

    PMD / Issues / #983 [pmd] java.util.zip.ZipException: error in opening zip file

    sourceforge.net | 12 months ago
    java.util.zip.ZipException: error in opening zip file
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
    ZipFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:127)
    3. java.util.zip.ZipFile.<init>(ZipFile.java:144)
    3 frames
  3. Maven :: Indexer Core
    DefaultNexusIndexer.addArtifactToIndex
    1. org.apache.maven.index.util.zip.JavaZipFileHandle.<init>(JavaZipFileHandle.java:42)
    2. org.apache.maven.index.util.zip.ZipFacade.getZipHandle(ZipFacade.java:61)
    3. org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.checkMavenArchetype(MavenArchetypeArtifactInfoIndexCreator.java:85)
    4. org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator.populateArtifactInfo(MavenArchetypeArtifactInfoIndexCreator.java:69)
    5. org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184)
    6. org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73)
    7. org.apache.maven.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:370)
    7 frames
  4. Sonatype Nexus Indexer
    DefaultIndexerManager.addItemToIndex
    1. org.sonatype.nexus.index.DefaultIndexerManager.addItemToIndex(DefaultIndexerManager.java:661)
    1 frame
  5. ${project.groupId}:${project.artifactId}
    DefaultEventInspectorHost$EventInspectorHandler.run
    1. org.sonatype.nexus.events.IndexerManagerEventInspector.inspectForIndexerManager(IndexerManagerEventInspector.java:74)
    2. org.sonatype.nexus.events.IndexerManagerEventInspector.inspect(IndexerManagerEventInspector.java:60)
    3. org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:157)
    3 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:662)
    3 frames