I am using Emma tool for code coverage. I am getting the following error while trying to fetch the coverage dump from my application server (tomcat in this case). I 'googled' a lot; however couldn't get through.
I have verified that 'emma.jar' is added in the required JRE of the jvm which is used by the App server. The focus of concern is error 'Caused by: java.net.ConnectException: Connection refused' for which I couldn't find any explanation.
EMMA: processing control command sequence ...
EMMA: executing [coverage.get (ip2Loc.ec,true,true)] ...
[EMMA v2.1, build 5320 (stable)]
emma ctl: coverage.get: RPC failure while executing [coverage.get]
Exception in thread "main" com.vladium.emma.EMMARuntimeException: coverage.get: RPC failure while executing [coverage.get]
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
... 3 more
Can anyone please let me know whether I am missing any thing.
I don't know that tool, but a "connection refused" error means that there's nothing on the server that's listening to the request that the client makes, or that there's something in between the client and the server which blocks the connection (a firewall, for example). Do you have any firewalls running on the client, server or on some network device between them? Is the software on the server running?