• Post Reply Bookmark Topic Watch Topic
  • New Topic

Emma Coverage Error  RSS feed

Ronnie D'costa
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

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]
at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:242)
at com.vladium.emma.Processor.run(Processor.java:88)
at com.vladium.emma.ctl.ctlCommand.run(ctlCommand.java:151)
at emma.main(emma.java:50)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:209)
at com.vladium.emma.rt.RTControllerClientProxy.execute(RTControllerClientProxy.java:84)
at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:231)
... 3 more

Can anyone please let me know whether I am missing any thing.

Jesper de Jong
Java Cowboy
Posts: 16028
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!