Hi,
unfortunatelly we introduced a incompatibility in exec file format
between JaCoCo 0.7.2 and 0.7.3, see
https://github.com/jacoco/jacoco/issues/286
This problem currently happens when you merge exec data created from a
0.7.2 and 0.7.3 agent.
Possible workarounds:
1) Use a single version of the JaCoCo agent only
2) Wait a couple of days until we publish a fixed version 0.7.4 which
will be compatible with 0.7.2 again.
Sorry for the inconvenience,
-marc
On 2015-02-24 08:28, Jörg Büsse wrote:
Hi,
I have JUnit Tests running with the jacoco java agent on two different
machines. Let's say 50% of the tests on machine a and 50% of the tests
on machine b (actually I use Test Load Balancer(TLB) to split the test
sets). I tried to merge the results (jacoco.exec files) with the ant
merge target but it fails every time with this exception:
java.lang.IllegalStateException: Incompatible execution data for class
.....
at
org.jacoco.core.data.ExecutionData.assertCompatibility(ExecutionData.java:146)
at org.jacoco.core.data.ExecutionData.merge(ExecutionData.java:109)
at
org.jacoco.core.data.ExecutionDataStore.put(ExecutionDataStore.java:48)
at
org.jacoco.core.data.ExecutionDataStore.visitClassExecution(ExecutionDataStore.java:122)
at
org.jacoco.core.data.ExecutionDataReader.readExecutionData(ExecutionDataReader.java:147)
at
org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:111)
at
org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:85)
at org.jacoco.ant.MergeTask.loadSourceFiles(MergeTask.java:114)
at org.jacoco.ant.MergeTask.execute(MergeTask.java:74)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
I'm using the latest jacoco-0.7.3.201502191951.zip
I've read https://github.com/jacoco/jacoco/issues/95 and something of
'fork="true" forkmode="once"' what makes me believe that merging
results from different JVM instances is not intended to work. Am I
right or what am I doing wrong?
Regards
Jörg
--
You received this message because you are subscribed to the Google
Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/715e89c6-435a-47f3-a35c-82f64a5d41a6%40googlegroups.com
[1].
For more options, visit https://groups.google.com/d/optout [2].
Links:
------
[1]
https://groups.google.com/d/msgid/jacoco/715e89c6-435a-47f3-a35c-82f64a5d41a6%40googlegroups.com?utm_medium=email&utm_source=footer
[2] https://groups.google.com/d/optout
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/f19a9a4d0a19d17c3c48c2bf1e10a147%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.