aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes error in EMMA code coverage (: coverage.get: RPC fail) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "error in EMMA code coverage (: coverage.get: RPC fail)" Watch "error in EMMA code coverage (: coverage.get: RPC fail)" New topic
Author

error in EMMA code coverage (: coverage.get: RPC fail)

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
Hi i am trying to genreate the coverage.em by using

java emma ctl -connect localhost:47653 -command coverage.get,c:\coverage.ec

here i am getting the exception, the exception details are



EMMA: processing control command sequence ...
EMMA: executing [coverage.get (c:\coverage\coverage.ec,true,tru
e)] ...
[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 fail
ure 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: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.vladium.emma.rt.RTControllerClientProxy.execute(RTControllerClientProxy.j
ava:84)
at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:231)
... 3 more


please help me to resolve this issue.
Michael Couck
Ranch Hand

Joined: Nov 15, 2003
Posts: 46
I can't really help you with Emma, but you can try an integration server like Hudson and use a code coverage plugin like Serenity(http://wiki.hudson-ci.org/display/HUDSON/Serenity+Plugin), this will give you not only coverage but complexity, dependency, abstractness and distance metrics.

Hope this helps a little,
Michael
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
hi

please let me know if any body aware of this problem.


thanking you advancely.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

localhost:47653 is refusing the connection, you'll need to investigate why


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
Hi Martijn,

i am trying to find this but iam not able to find the solutin.

Could you please suggest on this?
 
Don't get me started about those stupid light bulbs.
 
subject: error in EMMA code coverage (: coverage.get: RPC fail)