java.util.zip.ZipException: invalid literal/length code

Jenkins JIRA | Arie Zilberstein | 2 years ago
  1. 0

    My Jacoco code coverage job started failing with this exception: ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.util.zip.ZipException: invalid literal/length code at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) at java.util.zip.ZipInputStream.read(ZipInputStream.java:193) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at org.jacoco.core.internal.analysis.ContentTypeDetector.readInt(ContentTypeDetector.java:81) at org.jacoco.core.internal.analysis.ContentTypeDetector.determineType(ContentTypeDetector.java:61) at org.jacoco.core.internal.analysis.ContentTypeDetector.<init>(ContentTypeDetector.java:56) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:152) at org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:135) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:110) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:116) at hudson.plugins.jacoco.JacocoBuildAction.getJacocoReports(JacocoBuildAction.java:236) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:319) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:300) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:214) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) This fails the job and there is no coverage report. I don't know exactly what causes it but the problem reproduces every build. It may be related to the fact that the project has grown over time and it contains big resource files.

    Jenkins JIRA | 2 years ago | Arie Zilberstein
    java.util.zip.ZipException: invalid literal/length code
  2. 0

    My Jacoco code coverage job started failing with this exception: ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.util.zip.ZipException: invalid literal/length code at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) at java.util.zip.ZipInputStream.read(ZipInputStream.java:193) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at org.jacoco.core.internal.analysis.ContentTypeDetector.readInt(ContentTypeDetector.java:81) at org.jacoco.core.internal.analysis.ContentTypeDetector.determineType(ContentTypeDetector.java:61) at org.jacoco.core.internal.analysis.ContentTypeDetector.<init>(ContentTypeDetector.java:56) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:152) at org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:135) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:110) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:116) at hudson.plugins.jacoco.JacocoBuildAction.getJacocoReports(JacocoBuildAction.java:236) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:319) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:300) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:214) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) This fails the job and there is no coverage report. I don't know exactly what causes it but the problem reproduces every build. It may be related to the fact that the project has grown over time and it contains big resource files.

    Jenkins JIRA | 2 years ago | Arie Zilberstein
    java.util.zip.ZipException: invalid literal/length code
  3. 0

    Error creating code coverage report with JaCoCo

    Stack Overflow | 1 year ago | dty
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report (report) on project LMS: An error has occurred in JaCoCo Test report generation.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Invalid literal/length code - how to solve this?

    Stack Overflow | 4 years ago | pepuch
    java.util.zip.ZipException: invalid literal/length code
  6. 0

    docx4j can't open template file on mac os x

    Stack Overflow | 4 years ago | Pavel
    org.docx4j.openpackaging.exceptions.Docx4JException: Error processing zip file (is it a zip file?)

  1. linxiaolong 1 times, last 2 weeks ago
3 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

    invalid literal/length code

    at java.util.zip.InflaterInputStream.read()
  2. Java RT
    BufferedInputStream.read
    1. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
    2. java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
    3. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    4. java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    4 frames
  3. JaCoCo :: Core
    Analyzer.analyzeAll
    1. org.jacoco.core.internal.analysis.ContentTypeDetector.readInt(ContentTypeDetector.java:81)
    2. org.jacoco.core.internal.analysis.ContentTypeDetector.determineType(ContentTypeDetector.java:61)
    3. org.jacoco.core.internal.analysis.ContentTypeDetector.<init>(ContentTypeDetector.java:56)
    4. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:152)
    5. org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:135)
    6. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158)
    7. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183)
    8. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
    9. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
    10. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
    10 frames
  4. hudson.plugins.jacoco
    JacocoPublisher.perform
    1. hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:110)
    2. hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:116)
    3. hudson.plugins.jacoco.JacocoBuildAction.getJacocoReports(JacocoBuildAction.java:236)
    4. hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:319)
    5. hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:300)
    6. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:214)
    6 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
    6. hudson.model.Run.execute(Run.java:1757)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:234)
    9 frames