Thanks Marc for quick response.
The VM is accessible if I set output as "tcpclient" and able to capture the
coverage data and would like to try with tcpserver too. I think if I try to
use "address=*" agent is going to write to the VM where PCF is running and
we dont want to try * because no ports on VM where PCF container is running
is not allowed.

I have couple of questions -
1. I dont see much difference between tcpserver and tcpclient modes because
we are going to supply same values. May be I am missing something.


Regards,
Ashok

On Wed, Oct 14, 2020 at 3:49 PM Marc Hoffmann <[email protected]>
wrote:

> Hi,
>
> I don’t know how PCF works. But probably the “IP Adress of VM” is not
> available where the application is installed (container?).
>
> You can simply specify address=* to bind to any available address.
>
> Regards,
> -marc
>
>
>
> On 14. Oct 2020, at 22:44, ashok kumar <[email protected]> wrote:
>
> Hi All,
>
> I have SpringBoot application running on PCF and I set output="tcpserver",
> port="6335" and address="<IP Address of VM>" and while starting the
> application, seeinb below exception. Appreciate your help on this.
>
> 2020-10-14T15:36:01.308-05:00 [APP/PROC/WEB/0] [ERR]
> java.net.BindException: Cannot assign requested address (Bind failed)
> 2020-10-14T15:36:01.308-05:00 [APP/PROC/WEB/0] [ERR] at
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
> 2020-10-14T15:36:01.308-05:00 [APP/PROC/WEB/0] [ERR] at
> java.net.ServerSocket.bind(ServerSocket.java:390)
> 2020-10-14T15:36:01.308-05:00 [APP/PROC/WEB/0] [ERR] at
> org.jacoco.agent.rt.internal_43f5073.Agent.getInstance(Agent.java:54)
> 2020-10-14T15:36:01.308-05:00 [APP/PROC/WEB/0] [ERR] at
> org.jacoco.agent.rt.internal_43f5073.PreMain.premain(PreMain.java:50)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> java.lang.reflect.Method.invoke(Method.java:498)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
> 2020-10-14T15:36:01.309-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2020-10-14T15:36:01.310-05:00 [APP/PROC/WEB/0] [ERR] at
> sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
> 2020-10-14T15:36:01.310-05:00 [APP/PROC/WEB/0] [ERR] Caused by:
> java.net.BindException: Cannot assign requested address (Bind failed)
> 2020-10-14T15:36:01.310-05:00 [APP/PROC/WEB/0] [ERR] at
> java.net.ServerSocket.bind(ServerSocket.java:390)
> 2020-10-14T15:36:01.310-05:00 [APP/PROC/WEB/0] [ERR] at
> org.jacoco.agent.rt.internal_43f5073.output.TcpServerOutput.startup(TcpServerOutput.java:54)
> 2020-10-14T15:36:01.310-05:00 [APP/PROC/WEB/0] [ERR] at
> org.jacoco.agent.rt.internal_43f5073.Agent.startup(Agent.java:129)
> 2020-10-14T15:36:01.311-05:00 [APP/PROC/WEB/0] [ERR] at
> org.jacoco.agent.rt.internal_43f5073.Agent.getInstance(Agent.java:54)
>
> Regards,
> Ashok
>
> --
> 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/bae7028a-17dd-4eee-a4ef-a94d782943a4o%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/bae7028a-17dd-4eee-a4ef-a94d782943a4o%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/6EA54F95-0BCE-4B36-9BEF-49FC73699168%40mountainminds.com
> <https://groups.google.com/d/msgid/jacoco/6EA54F95-0BCE-4B36-9BEF-49FC73699168%40mountainminds.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/CAGHLmnvv4usd7c-wBj7Ymd0D1n7qkh7HLgvAHfCHY%2BoDcBYTJg%40mail.gmail.com.

Reply via email to