Thanks so much Evgeny. That was indeed the core issue. I am able to get
data now.
For the interested folks, the org.jacoco.agent-0.8.2.jar gives out errors
so use the org.jacoco.agent-0.8.2-runtime.jar (pointed out in another
thread in this group).
The jar can be found here:
https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.2/


On Tue, Nov 20, 2018 at 12:40 AM Evgeny Mandrikov <mandri...@gmail.com>
wrote:

> Hi,
>
> On Tuesday, November 20, 2018 at 8:43:50 AM UTC+1, deept...@gmail.com
> wrote:
>>
>> Hi,
>>      I am using jacoco in tcp server mode to collect coverage data for
>> integration tests.  To launch my application, I use the following jvm
>> argument
>>
>> "-Djavaagent:org.jacoco.agent-0.8.2.jar=output=tcpserver,port=36302,address=*"
>>
>>
>> The application launches fine but when I try connecting to the port 36302
>> on ip 127.0.0.1, inisde the container, I get connection refused. What am I
>> doing incorrect here ?
>>
>
>
> Command line argument must start with
>
> -javaagent
>
> and not with
>
> -D
>
> Please read
> https://www.jacoco.org/jacoco/trunk/doc/agent.html
> https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html
>
> Before even trying "output=tcpserver" please make sure that default
> "output=file" works.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jacoco/PGMmFF0I2y8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jacoco+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/e1ce9e37-ba57-4d1b-b3d7-75119cf601a9%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/e1ce9e37-ba57-4d1b-b3d7-75119cf601a9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CALS5uKgwuXDqcHZd%2BEgUX-HuodJ9WX1RrStEO%3D4LMV%3DtJkvK-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to