unable to read certain execution data file

189 views
Skip to first unread message

r.anee...@gmail.com

unread,
Nov 19, 2014, 4:35:29 AM11/19/14
to jac...@googlegroups.com
Hello All,

We are evaluating Jacoco for our code coverage analysis. During our test phase, we are generating the Jacoco.exec file to see the different classes/Methods covered. At the end of the test phase, when I want to merge the different Jacoco (from different testers), I observe that out of 6 testers, for 2 testers, the Jacoco.exec file seems to be corrupted !!!!


I am not sure why this issue occurs

What I tried till now to solve this:

(1) I tried use the latest version of Jacoco and the older version - but this did not help

(2) I tried to re-copy the Jacoco from the eclipse installation and try - no breakthrough

(3) For the 2 testers, for whom the Jacoco.exec file was corrupted, I tried to view the HTML report individually - I see this is not possible. For other testers, its fine

Points to Note

(a) I did a single eclipse installation and then installed the software I am testing. Then I made different copies of this folder, for the 6 testers who are testing the software - And we observe that this issue is seen only for 2 testers

(b) 10 days back, when I tried to consolidate the jacoco.exec from 6 testers, there was no issue

It would be great if there is any help

Many thanks in advance

thank you
Aneesh Kumar

Marc R. Hoffmann

unread,
Nov 19, 2014, 3:04:24 PM11/19/14
to jac...@googlegroups.com
Hi Aneesh,

can you please provide

1) the specific error message and exception trace and
2) a corrupted exec file?

Many thanks,
-marc

Aneesh Kumar

unread,
Nov 23, 2014, 10:18:07 PM11/23/14
to jac...@googlegroups.com
Hi Marc,

I have mailed on your email address - hoff...@mountainminds.com
replying to you incase you did not notice it 


Aneesh Kumar
+919740866115


--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/kP85j6f2Rew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

r.anee...@gmail.com

unread,
Nov 25, 2014, 8:02:27 AM11/25/14
to jac...@googlegroups.com, r.anee...@gmail.com
Hi All,

I think I found the probable reason for this issue - the reason could be below

**** this is the reply from Marc **********

........The files contain multiple sessions, written one after the other. At some point a sessions is not dumped completely (some bytes missing at the end of a record). It looks like the JVM was terminated before the data could be written properly. E.g. killing a process might lead to this.

**** this is the reply from Marc **********

To avoid this situation in future, I am taking a regular back up of the jacoco.exec file, using a work around.

I am using a batch file, with the below lines to launch the eclipse
ren "jacoco.exec" "jacoco - %date:/=-% %time::=-%.exec"
PAUSE
START eclipse.exe

With this, every time I launch the batch file, the earlier jacoco file will be appended with the time stamp :-)

Also, I am minimizing the risk of the jacoco.exec file getting bloated


I would like to thank Marc for the time and advice

PS: What I learnt: Do no kill the eclipse.exe file


Thank you
Aneesh Kumar
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages