This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Emma Coverage Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Emma Coverage Error" Watch "Emma Coverage Error" New topic
Author

Emma Coverage Error

Ronnie D'costa
Greenhorn

Joined: Dec 05, 2008
Posts: 8
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.


Ronnie
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Emma Coverage Error
 
Similar Threads
RMI problem
RPC failure while executing [coverage.get]
java.net.ConnectException: Connection refused
Another shutting down problem
error in EMMA code coverage (: coverage.get: RPC fail)