java.io.IOException: While reading Jacoco execution data-file

386 views
Skip to first unread message

devops tutorials

unread,
Jan 11, 2020, 6:13:34 AM1/11/20
to Jenkins JaCoCo plugin mailing list
Hi All,

I am getting the below error while publishing the Jacoco reports to Jenkins builds via Pipelines. I am using the Jenkins 2.213, Jacoco Jenkins Plugin-3.0.4, Maven Jacoco Plugin o.8.3, Maven 3.3.9 version. Is anyone facing this issue? And please help me on resolving this issue.

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)
Caused: java.io.IOException: While reading execution data-file: /var/jenkins/jobs/AppBuild/jobs/Jobname/builds/22/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)
Finished: FAILURE


John Moe

unread,
Jan 11, 2020, 2:11:31 PM1/11/20
to jenkins-jacoco-pl...@googlegroups.com
Hi. 

You did not say what Java version you are running. Jacoco Jenkins Plugin 3.0.4 does not support anything above Java 10 it seems. 3.0.3 brought support for Java 10.
This might not be the cause of your problem however. 

-Avec

--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „Jenkins JaCoCo plugin mailing list” csoportjára.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-m...@googlegroups.com címre.
Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el ide: https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/38c947c4-0f65-4488-ba2f-5ae5a246b931%40googlegroups.com.

devops tutorials

unread,
Jan 11, 2020, 2:19:43 PM1/11/20
to Jenkins JaCoCo plugin mailing list
Hi Avec,

Thank you for your response on this.

I am using the OpenJDK 1.8.0_222 and we are running the Pipeline on docker container.

Thank you,
Ramesh

On Sunday, January 12, 2020 at 12:41:31 AM UTC+5:30, Avec wrote:
Hi. 

You did not say what Java version you are running. Jacoco Jenkins Plugin 3.0.4 does not support anything above Java 10 it seems. 3.0.3 brought support for Java 10.
This might not be the cause of your problem however. 

-Avec

On Sat, Jan 11, 2020 at 12:13 PM devops tutorials <ramesh...@gmail.com> wrote:
Hi All,

I am getting the below error while publishing the Jacoco reports to Jenkins builds via Pipelines. I am using the Jenkins 2.213, Jacoco Jenkins Plugin-3.0.4, Maven Jacoco Plugin o.8.3, Maven 3.3.9 version. Is anyone facing this issue? And please help me on resolving this issue.

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)
Caused: java.io.IOException: While reading execution data-file: /var/jenkins/jobs/AppBuild/jobs/Jobname/builds/22/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)
Finished: FAILURE


--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „Jenkins JaCoCo plugin mailing list” csoportjára.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-mailing-list+unsubscribe@googlegroups.com címre.

Dominik Stadler

unread,
Jan 13, 2020, 2:25:42 AM1/13/20
to jenkins-jacoco-pl...@googlegroups.com
according to the stacktrace, Jacoco itself, when called from the jenkins plugin, cannot read the coverage data of the build, so it looks like your .exec file is somehow corrupted or resulting from a build with an older version of jacoco.

Dominik

Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-m...@googlegroups.com címre.

Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el ide: https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/38c947c4-0f65-4488-ba2f-5ae5a246b931%40googlegroups.com.

--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „Jenkins JaCoCo plugin mailing list” csoportjára.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-m...@googlegroups.com címre.
Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el ide: https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/f991a716-6ce0-4cbc-be63-41089bb8af3e%40googlegroups.com.

devops tutorials

unread,
Jan 13, 2020, 3:58:35 AM1/13/20
to Jenkins JaCoCo plugin mailing list
Hi Dominik,

Thank you for your inputs on this.

I have executed the .exec files by using the Jacoco CLI command line tool. I did not see any errors during the execution.

On Monday, January 13, 2020 at 12:55:42 PM UTC+5:30, Dominik Stadler wrote:
according to the stacktrace, Jacoco itself, when called from the jenkins plugin, cannot read the coverage data of the build, so it looks like your .exec file is somehow corrupted or resulting from a build with an older version of jacoco.

Dominik

Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-mailing-list+unsubscribe@googlegroups.com címre.

Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el ide: https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/38c947c4-0f65-4488-ba2f-5ae5a246b931%40googlegroups.com.

--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „Jenkins JaCoCo plugin mailing list” csoportjára.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) jenkins-jacoco-plugin-mailing-list+unsubscribe@googlegroups.com címre.
Reply all
Reply to author
Forward
0 new messages