• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Local Host refused to connect (ANT)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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"
 
Sheriff
Posts: 24635
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Paper beats rock. Scissors beats tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!