Hi,

Thanks. I tried setting the agent in tcpserver mode and fetch the exec file 
using the dump CLI command. But when I try to fetch the report using cli, get 
the below error.

Configuration:
 
-javaagent:jacoco-0.8.4\lib\jacocoagent.jar"=port=9005,output=tcpserver,address=*

dump command:
java -jar jacoco-0.8.4\lib\jacococli.jar dump  --port 9005 --destfile 
C:\Dhivya\jacoco\jacoco-11july.exec

Report Command:

java -jar jacoco-0.8.4\lib\jacococli.jar report jacoco-client.exec --classfiles 
MyRest\target\classes\com\infor\m3\MyRest\excel\* --html jacoco\html-tomcat\ 
--name cc-report


Error:
[INFO] Loading execution data file 
C:\Users\dravichandran\eclipse-workspace\Jacoco\jacoco-client.exec.
[INFO] Loading execution data file 
C:\Users\dravichandran\eclipse-workspace\MyRest\target\classes\com\infor\m3\MyRest\excel\RefreshSheet.class.
Exception in thread "main" java.io.IOException: Invalid execution data file.
        at 
org.jacoco.cli.internal.core.data.ExecutionDataReader.read(ExecutionDataReader.java:89)
        at 
org.jacoco.cli.internal.core.tools.ExecFileLoader.load(ExecFileLoader.java:59)
        at 
org.jacoco.cli.internal.core.tools.ExecFileLoader.load(ExecFileLoader.java:73)
        at 
org.jacoco.cli.internal.commands.Report.loadExecutionData(Report.java:98)
        at org.jacoco.cli.internal.commands.Report.execute(Report.java:82)
        at org.jacoco.cli.internal.Main.execute(Main.java:89)
        at org.jacoco.cli.internal.Main.main(Main.java:104).

Regards,
Dhivya

-- 
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/90e9084e-5857-42c6-b3c2-88c120a03b98%40googlegroups.com.

Reply via email to