Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Local Host refused to connect (ANT)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to generate dump data using Jacoco. My ANT build file builds successfully but when I try to dump the coverage file, I get the following error.

The command I'm using:

C:\Users\DGM(IT)\Downloads\Compressed\apache-ant-1.8.4-bin\apache-ant-1.8.4\bin>ant -buildfile C:\Users\DGM(IT)\Downloads\Compressed\JaCoCo_KT\JaCoCo_KT\JaCoCo_Ant.xml -Ddumplocation=C:\Users\DGM(IT)\Downloads\Compressed\lib generateDump


The error:

"generateDump:
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
[jacoco:dump] Connection refused: connect
[jacoco:dump] Connecting to localhost/127.0.0.1:6300
BUILD FAILED
C:\Users\DGM(IT)\Downloads\Compressed\JaCoCo_KT\JaCoCo_KT\JaCoCo_Ant.xml:16: Unable to dump coverage data
Total time: 21 sec"
 
Marshal
Posts: 26377
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apparently Jacoco expects to find a server running on your local machine at port 6300. But it doesn't find one, hence those error messages.

So, do you have the server running on a different machine? Or do you have it running locally but on a different port? If that's the case then perhaps there are some ant parameters you need to provide, to tell Jacoco where the server is actually running. I would expect the documentation to describe those, if they exist.

Or maybe you didn't run the server at all? If that's the case then you should review the Jacoco documentation to find out how to do that.
 
Tamasa Patra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My server is running locally on a different port.
I changed the port number and now it can connect.

I am getting a new error now:

"BUILD FAILED
Unable to dump coverage data"

What could be the cause?
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic