Hello,

We have started our micro service with jacoco java agent with tcpclient
output mode,
-javaagent:$PWD/coverage/jacocoagent.jar=output=tcpclient,includes=*,address=100.XXX.XXX.XXX,port=6300

Micro-service get started successfully.

Next, On another machine (100.XXX.XXX.XXX), we have executed
ExecutionDataServer.java given on jacoco site (
https://www.jacoco.org/jacoco/trunk/doc/examples/java/ExecutionDataServer.java)
This will continuously listen for an incoming connection on port 6300.

Now, we have executed test cases.

After that, We connect to micro-service machine to dump coverage data on
the fly (Without shutdown). To do that we execute below jacoco command on
micro service machine. java -jar coverage/jacococli.jar dump --address
100.XXX.XXX.XXX –destfile jacoco-server.exec

Once I executed the above command, connection successfully gets created
between 100.XXX.XXX.XXX machine and micro service machine. But data is not
getting dumped on 100.XXX.XXX.XXX machine. We are getting "No remote
command visitor" error.

Stack Trace : Exception in thread "main" java.io.IOException: No remote
command visitor. at
org.jacoco.cli.internal.core.runtime.RemoteControlReader.readDumpCommand(RemoteControlReader.java:63)
at
org.jacoco.cli.internal.core.runtime.RemoteControlReader.readBlock(RemoteControlReader.java:42)
at
org.jacoco.cli.internal.core.data.ExecutionDataReader.read(ExecutionDataReader.java:92)
at
org.jacoco.cli.internal.core.tools.ExecDumpClient.dump(ExecDumpClient.java:127)
at
org.jacoco.cli.internal.core.tools.ExecDumpClient.dump(ExecDumpClient.java:98)
at org.jacoco.cli.internal.commands.Dump.execute(Dump.java:69) at
org.jacoco.cli.internal.Main.execute(Main.java:89) at
org.jacoco.cli.internal.Main.main(Main.java:104)

Please help me to resolve this issue.


Thanks,

Vijay
ᐧ

-- 
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/CAAheh33CiLX0S4gxHHN3HiLtc%3D0fDSHAJ2AZvFswDhFwT6Oc1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to