java.util.zip.ZipException: invalid entry size (expected 14808 but got 19284 bytes)

Jenkins JIRA | David Miller | 3 years ago
  1. 0

    We are getting intermittent occurrences of a Jacoco exception below. If we re-run the exact same Jenkins job, we won't get the error and the code coverage results are reported OK. Archiving artifacts Recording test results [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] src/sn.comm/lwp/comm.test/bvt/*.exec;jars_original;tmp_jacoco; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/src/sn.comm/lwp/comm.test/bvt/jacoco.exec> [JaCoCo plugin] Saving matched class directories: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/jars_original> [JaCoCo plugin] Saving matched source directories: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/tmp_jacoco> [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.util.zip.ZipException: invalid entry size (expected 14808 but got 19284 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:387) at java.util.zip.ZipInputStream.read(ZipInputStream.java:156) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78) at org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:131) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:131) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) at hudson.model.Run.execute(Run.java:1701) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Jenkins JIRA | 3 years ago | David Miller
    java.util.zip.ZipException: invalid entry size (expected 14808 but got 19284 bytes)
  2. 0

    We are getting intermittent occurrences of a Jacoco exception below. If we re-run the exact same Jenkins job, we won't get the error and the code coverage results are reported OK. Archiving artifacts Recording test results [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] src/sn.comm/lwp/comm.test/bvt/*.exec;jars_original;tmp_jacoco; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/src/sn.comm/lwp/comm.test/bvt/jacoco.exec> [JaCoCo plugin] Saving matched class directories: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/jars_original> [JaCoCo plugin] Saving matched source directories: <http://jenkinspoc.swg.usma.ibm.com/jenkins/job/Communities_UT/ws/tmp_jacoco> [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.util.zip.ZipException: invalid entry size (expected 14808 but got 19284 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:387) at java.util.zip.ZipInputStream.read(ZipInputStream.java:156) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78) at org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:131) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:131) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) at hudson.model.Run.execute(Run.java:1701) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Jenkins JIRA | 3 years ago | David Miller
    java.util.zip.ZipException: invalid entry size (expected 14808 but got 19284 bytes)
  3. 0

    log4j:WARN Please initialize the log4j system properly issue

    Stack Overflow | 3 years ago | Alex Miles
    org.docx4j.openpackaging.exceptions.Docx4JException: Error processing zip file (is it a zip file?)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to fix org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException(epub mimetype)?

    Stack Overflow | 4 years ago | Danny Choi
    java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor
  6. 0

    How to deploy password protected war file in jboss

    Stack Overflow | 4 years ago | user1545498
    java.util.zip.ZipException: encrypted ZIP entry not supported

    7 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 entry size (expected 14808 but got 19284 bytes)

      at java.util.zip.ZipInputStream.readEnd()
    2. Java RT
      ZipInputStream.getNextEntry
      1. java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:387)
      2. java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
      3. java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
      4. java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78)
      4 frames
    3. JaCoCo :: Core
      Analyzer.analyzeAll
      1. org.jacoco.core.analysis.Analyzer.analyzeArchive(Analyzer.java:131)
      2. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:158)
      3. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183)
      3 frames
    4. hudson.plugins.jacoco
      JacocoPublisher.perform
      1. hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:131)
      2. hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:138)
      3. hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
      4. hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:278)
      5. hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:260)
      6. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:380)
      6 frames
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725)
      6. hudson.model.Run.execute(Run.java:1701)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:231)
      9 frames