Hi, Have you tried searching the message in internet - https://lmgtfy.com/?q=Cannot+assign+requested+address%3A+JVM_Bind ?
Also javadoc of BindExceptions ( https://docs.oracle.com/javase/7/docs/api/java/net/BindException.html ) is pretty explicit: Signals that an error occurred while attempting to bind a socket to a local address and port. *Typically, the port is in use, or the requested local address could not be assigned.* On Thursday, August 22, 2019 at 1:18:27 PM UTC+2, Dhivya wrote: > > 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/37db9d89-a153-4fc4-a29b-e888e92dfe6e%40googlegroups.com.
