java.io.IOException: Data error (cyclic redundancy check)

Jenkins JIRA | Prasad Sawant | 1 year ago
  1. 0

    We are running build and junit test on different slave machines. The code coverage is gathered perfectly on slave machine, the jenkins jacoco plugin finds the exec file but at the time of publishing report it fails with following error:- [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/coverage/**.exec;**/out/jars;**/src/RAC; locations are configured [JaCoCo plugin] Number of found exec files for pattern **/coverage/**.exec: 1 [JaCoCo plugin] Saving matched execfiles: D:\workdir\tc10.1.5_rac_client\coverage\rac_client.exec [JaCoCo plugin] Saving matched class directories for class-pattern: **/out/jars: D:\workdir\tc10.1.5_rac_client\out\jars [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/RAC: D:\workdir\tc10.1.5_rac_client\src\RAC [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [**/*Messages*.class] [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0] [JaCoCo plugin] Publishing the results.. Failed to load F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco java.io.IOException: Data error (cyclic redundancy check) at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at java.io.PushbackInputStream.read(Unknown Source) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.closeEntry(Unknown Source) at java.util.zip.ZipInputStream.getNextEntry(Unknown Source) at org.jacoco.core.analysis.Analyzer.analyzeZip(Analyzer.java:245) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:227) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:377) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1776) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) [JaCoCo plugin] Could not parse coverage results. Setting Build to failure. Build step 'Record JaCoCo coverage report' changed build result to FAILURE Finished: FAILURE Note:- jacoco plugin copies the classes, source files and exec file on the master home directory at F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco location. But dont know the reason why it fails with above error. Also, the slave where this job runs does not have F:\ drive.

    Jenkins JIRA | 1 year ago | Prasad Sawant
    java.io.IOException: Data error (cyclic redundancy check)
  2. 0

    We are running build and junit test on different slave machines. The code coverage is gathered perfectly on slave machine, the jenkins jacoco plugin finds the exec file but at the time of publishing report it fails with following error:- [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/coverage/**.exec;**/out/jars;**/src/RAC; locations are configured [JaCoCo plugin] Number of found exec files for pattern **/coverage/**.exec: 1 [JaCoCo plugin] Saving matched execfiles: D:\workdir\tc10.1.5_rac_client\coverage\rac_client.exec [JaCoCo plugin] Saving matched class directories for class-pattern: **/out/jars: D:\workdir\tc10.1.5_rac_client\out\jars [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/RAC: D:\workdir\tc10.1.5_rac_client\src\RAC [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [**/*Messages*.class] [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0] [JaCoCo plugin] Publishing the results.. Failed to load F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco java.io.IOException: Data error (cyclic redundancy check) at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at java.io.PushbackInputStream.read(Unknown Source) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.read(Unknown Source) at java.util.zip.ZipInputStream.closeEntry(Unknown Source) at java.util.zip.ZipInputStream.getNextEntry(Unknown Source) at org.jacoco.core.analysis.Analyzer.analyzeZip(Analyzer.java:245) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:227) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:377) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1776) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) [JaCoCo plugin] Could not parse coverage results. Setting Build to failure. Build step 'Record JaCoCo coverage report' changed build result to FAILURE Finished: FAILURE Note:- jacoco plugin copies the classes, source files and exec file on the master home directory at F:\Jenkins\install\jobs\RAC_Client1015\builds\42\jacoco location. But dont know the reason why it fails with above error. Also, the slave where this job runs does not have F:\ drive.

    Jenkins JIRA | 1 year ago | Prasad Sawant
    java.io.IOException: Data error (cyclic redundancy check)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error reading Excel .XLSX with Apache POI

    Stack Overflow | 4 years ago | Web User
    java.io.IOException: Read error

  1. kid 1 times, last 7 months ago
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.io.IOException

    Data error (cyclic redundancy check)

    at java.io.FileInputStream.readBytes()
  2. Java RT
    ZipInputStream.getNextEntry
    1. java.io.FileInputStream.readBytes(Native Method)
    2. java.io.FileInputStream.read(Unknown Source)
    3. java.io.BufferedInputStream.read1(Unknown Source)
    4. java.io.BufferedInputStream.read(Unknown Source)
    5. java.io.FilterInputStream.read(Unknown Source)
    6. java.io.PushbackInputStream.read(Unknown Source)
    7. java.util.zip.InflaterInputStream.fill(Unknown Source)
    8. java.util.zip.InflaterInputStream.read(Unknown Source)
    9. java.util.zip.ZipInputStream.read(Unknown Source)
    10. java.util.zip.ZipInputStream.closeEntry(Unknown Source)
    11. java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
    11 frames
  3. JaCoCo :: Core
    Analyzer.analyzeAll
    1. org.jacoco.core.analysis.Analyzer.analyzeZip(Analyzer.java:245)
    2. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
    3. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
    3 frames
  4. hudson.plugins.jacoco
    JacocoPublisher.perform
    1. hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126)
    2. hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133)
    3. hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
    4. hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:227)
    5. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:377)
    5 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
    6. hudson.model.Run.execute(Run.java:1776)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:89)
    9. hudson.model.Executor.run(Executor.java:240)
    9 frames