Hi,
I want to run the Example.java file in the server and write the execution
data to my local system.
So I made the below execution in server and got the "cannot assign
requested address: JVM_Bind.".
I am not sure where I am doing wrong. Help me in moving forward.
java
-javaagent:jacoco-0.8.4\lib\jacocoagent.jar=output=tcpserver,address=<mylocalsystemaddress>,port=9025
-cp java\classes Example
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!
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/e52272c3-08c9-41f6-903a-c4cde88aabf4%40googlegroups.com.