Hi,

the dump command requires a specific IP address or host name to connect to:

java -jar jacococli.jar dump --address YourServer --port  57026 --destfile 
/home/vansh/jacoco/jacoco.exec

If you run the command on the same machine “localhost” also works.

Regards,
-marc



> On 26. Sep 2020, at 02:57, 'Vansh Kumar Madan' via JaCoCo and EclEmma Users 
> <[email protected]> wrote:
> 
> 
> Hi ,
> 
> I am trying to run integration tests on my java code from remote server, so 
> whenver my tests hit my code server, jacoco records it.
> 
> I am new to jacoco, till now i have gather that there is tcp server method 
> which doesnot require any restart.
> 1) I have added below line in my /etc/profile.
> 
> export 
> JAVA_OPTS="-javaagent:/home/vansh/jacoco/lib/jacocoagent.jar=address=*,port=57026,destfile=/home/vansh/jacoco/jacoco.exec,output=tcpserver"
> 
> 2)but when i am trying to take dump using below command -
> 
> java -jar jacococli.jar dump --address * --port  57026 --destfile 
> /home/vansh/jacoco/jacoco.exec
> 
> ERROR :: Exception in thread "main" java.net.UnknownHostException: 
> jacococli.jar: Name or service not known
>     at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>     at 
> java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
>     
> 
> I checked that there is nothing running on port 57026, after i reload 
> /etc/profile , could anyone confirm where i am going wrong?
> Thanks in advance
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This electronic message transmission contains information from the Company 
> that may be proprietary, confidential and/or privileged. The information is 
> intended only for the use of the individual(s) or entity named above. If you 
> are not the intended recipient, be aware that any disclosure, copying or 
> distribution or use of the contents of this information is prohibited. If you 
> have received this electronic transmission in error, please notify the sender 
> immediately by replying to the address listed in the "From:" field.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/084e0f3d-dd52-4101-bdf1-805ca8d1e800n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/084e0f3d-dd52-4101-bdf1-805ca8d1e800n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/BA3B6A57-5810-4046-860A-8E0F29E33574%40mountainminds.com.

Reply via email to