Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60741

java.io.IOException: While reading execution data-file: /var/jenkins/jobs/AppBuild/jobs/JobName/builds/22/jacoco/execFiles/exec0/jacoco.exec

    Details

    • Similar Issues:

      Description

      We have upgraded the Jenkins to 2.213 and the Jacoco plugin is 3.0.4. It was working fine before the upgrade. Below is the error snippet. Please help me on fixing this issue.

       

      Pipeline] jacoco
      [JaCoCo plugin] Collecting JaCoCo coverage data...
      [JaCoCo plugin] */.exec;/classes;*/src/main/java; locations are configured
      [JaCoCo plugin] Number of found exec files for pattern */*.exec: 2
      [JaCoCo plugin] Saving matched execfiles: /tmp/workspace/DevOps/JobName/runtime/README.exec /tmp/workspace/DevOps/JobName/target/coverage-reports/jacoco-ut.exec
      [JaCoCo plugin] Saving matched class directories for class-pattern: **/classes:
      [JaCoCo plugin] - /tmp/workspace/DevOps/JobName/target/classes 145 files
      [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/main/java:
      [JaCoCo plugin] Source Inclusions: */.java
      [JaCoCo plugin] Source Exclusions:
      [JaCoCo plugin] - /tmp/workspace/DevOps/JobName/src/main/java 125 files
      [JaCoCo plugin] Loading inclusions files..
      [JaCoCo plugin] inclusions: []
      [JaCoCo plugin] exclusions: []
      [Pipeline] }
      [Pipeline] // script
      Error when executing always post condition:
      java.io.IOException: While reading execution data-file: /var/jenkins_home/jobs/DevOps/jobs/JobName/builds/21/jacoco/execFiles/exec0/jacoco.exec
      at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:98)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:139)
      at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:110)
      at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:339)
      at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:326)
      at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:657)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Invalid execution data file.
      at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:89)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:95)
      ... 13 more

       

       

        Attachments

          Activity

          Hide
          hiteshkumar Hitesh kumar added a comment -

          Hi Team,

          Even we are facing same issues with jacoco 3.0.5

          jenkins verision: 2.164.3

          jacoco  tool version : 0.8.5

          [2020-06-30T12:58:19.766Z] [JaCoCo plugin] Publishing the results.. [2020-06-30T12:58:19.844Z] Failed to load /var/***_home/jobs/**/branches/master/builds/180/jacoco [2020-06-30T12:58:19.844Z] java.io.IOException: While reading execution data-file: /var/**_home/jobs/BO-MESSAGING-MULTIBRANCH/branches/master/builds/180/jacoco/execFiles/exec7/jacoco.exec [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:98) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:139) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:110) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:237) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:681) [2020-06-30T12:58:19.844Z] at org.**ci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) [2020-06-30T12:58:19.844Z] at org.**ci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) [2020-06-30T12:58:19.844Z] at org.***ci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) [2020-06-30T12:58:19.844Z] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [2020-06-30T12:58:19.844Z] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [2020-06-30T12:58:19.844Z] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [2020-06-30T12:58:19.844Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [2020-06-30T12:58:19.845Z] at java.lang.Thread.run(Thread.java:748) [2020-06-30T12:58:19.845Z] Caused by: java.io.EOFException [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readFully(DataInputStream.java:197) [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readUTF(DataInputStream.java:609) [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readUTF(DataInputStream.java:564) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.readExecutionData(ExecutionDataReader.java:149) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:116) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:93) [2020-06-30T12:58:19.845Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:95) [2020-06-30T12:58:19.845Z] ... 12 more [2020-06-30T12:58:19.845Z] [JaCoCo plugin] Could not parse coverage results. Setting Build to failure.

           

           

          Show
          hiteshkumar Hitesh kumar added a comment - Hi Team, Even we are facing same issues with jacoco 3.0.5 jenkins verision: 2.164.3 jacoco  tool version : 0.8.5 [2020-06-30T12:58:19.766Z] [JaCoCo plugin] Publishing the results.. [2020-06-30T12:58:19.844Z] Failed to load /var/*** _home/jobs/ ** /branches/master/builds/180/jacoco [2020-06-30T12:58:19.844Z] java.io.IOException: While reading execution data-file: /var/ ** _home/jobs/BO-MESSAGING-MULTIBRANCH/branches/master/builds/180/jacoco/execFiles/exec7/jacoco.exec [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:98) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:139) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:110) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoBuildAction.getResult(JacocoBuildAction.java:237) [2020-06-30T12:58:19.844Z] at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:681) [2020-06-30T12:58:19.844Z] at org. ** ci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) [2020-06-30T12:58:19.844Z] at org. ** ci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) [2020-06-30T12:58:19.844Z] at org. ***ci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) [2020-06-30T12:58:19.844Z] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [2020-06-30T12:58:19.844Z] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [2020-06-30T12:58:19.844Z] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [2020-06-30T12:58:19.844Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [2020-06-30T12:58:19.845Z] at java.lang.Thread.run(Thread.java:748) [2020-06-30T12:58:19.845Z] Caused by: java.io.EOFException [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readFully(DataInputStream.java:197) [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readUTF(DataInputStream.java:609) [2020-06-30T12:58:19.845Z] at java.io.DataInputStream.readUTF(DataInputStream.java:564) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.readExecutionData(ExecutionDataReader.java:149) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:116) [2020-06-30T12:58:19.845Z] at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:93) [2020-06-30T12:58:19.845Z] at hudson.plugins.jacoco.ExecutionFileLoader.loadExecutionData(ExecutionFileLoader.java:95) [2020-06-30T12:58:19.845Z] ... 12 more [2020-06-30T12:58:19.845Z] [JaCoCo plugin] Could not parse coverage results. Setting Build to failure.    

            People

            • Assignee:
              Unassigned
              Reporter:
              rameshar Ramesh Audireddy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: