Hi,

You run agent without explicit specification of port, so that it uses 
default "6300" ( see http://www.eclemma.org/jacoco/trunk/doc/agent.html and 
http://www.eclemma.org/jacoco/trunk/doc/ant.html#coverage ), while you 
request dump from port "6090".

Hope this helps.

On Tuesday, August 16, 2016 at 3:59:20 PM UTC+2, Anil Satya wrote:
>
>
> I have done the required research before adding this topic. Could not find 
> a proper match, so created new thread.
>
> *This is my Ant Dump task*:
>
> <target name="dump-now" depends="init">
>                 <echo message="entering dump part" />
>                 <jacoco:dump address="MyServer" port="6090" dump="true" 
> destfile="${coverage.dir}/lmjacoco.exec" retryCount="10" />        
>         </target>
>
>
> This is my jenkins JAVA_ARG setup:
>
>
> JAVA_OPTS=-javaagent:/tools/jacoco-0.7.6/lib/jacocoagent.
> jar=includes=com.manh.*:com.logistics.*,destfile=/builds/
> v2017/lm/deployments/lm/tomcat-ora/distribution/
> coverage/lmjacoco.exec,output=tcpserver
>
>
> My tomcat application is started on port: 26000.
>
>
> The TCP port mentioned in the ant task isn't being used by any other 
> process. The below is the error available in the jenkins console (Edited to 
> remove actual server name and IP address):
>
>
>
> *generate-report:     [echo] Generating xml report....*
>
> *init:*
>
>
>
>
>
> *dump-now:     [echo] entering dump part[jacoco:dump] Connecting to 
> MyServer:6090[jacoco:dump] Connection refused*
>
>
> Is there a problem with this setup. I've also tried the alternative where 
> I give the address and TCP port in the Jenkins JAVA_OPTS itself. Please 
> help.
>

-- 
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/d2eef333-14df-418d-958c-3b44815d5766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to