Hi,
I am reopening this issue.
when I try to run the above example.java program in the server and collect
the exec file in my local system with the below configuration.
java
-javaagent:jacoco-0.8.4\lib\jacocoagent.jar=output=tcpserver,address=<mylocalsystemaddress>,port=9025
-cp java\classes Example
I get the below error.
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at
org.jacoco.agent.rt.internal_035b120.output.TcpServerOutput.createServerSocket(TcpServerOutput.java:106)
at
org.jacoco.agent.rt.internal_035b120.output.TcpServerOutput.startup(TcpServerOutput.java:53)
at
org.jacoco.agent.rt.internal_035b120.Agent.startup(Agent.java:122)
at
org.jacoco.agent.rt.internal_035b120.Agent.getInstance(Agent.java:50)
at
org.jacoco.agent.rt.internal_035b120.PreMain.premain(PreMain.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
Hello, World!
--
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/c652acfb-a61a-4b7b-95c4-da0c4bcad126%40googlegroups.com.