RPC failure while executing coverage.get

mangla
2012-08-27
2013-05-09
  • mangla
    mangla
    2012-08-27

    I used -Demma.rt.control.port=$EMMA_PORT while intrumenting because it was giving me address already in use error.

    But now while generating the report by using

    java emma.jar emma ctl -connect:47653 -command coverage.get,mycoverage.ec \ -command coverage.reset

    I get the following error

    EMMA: processing control command sequence …
    EMMA: executing  …

    emma ctl: coverage.get: RPC failure while executing
    Exception in thread "main" com.vladium.emma.EMMARuntimeException: coverage.get: RPC failure while executing
            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:381)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
            at java.net.Socket.connect(Socket.java:539)
            at java.net.Socket.connect(Socket.java:488)
            at java.net.Socket.<init>(Socket.java:385)
            at java.net.Socket.<init>(Socket.java:228)
            at com.vladium.emma.rt.RTControllerClientProxy.execute(RTControllerClientProxy.java:84)
            at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:231)
            … 3 more

    Can anyone help me to solve this problem?
    what could be the reason for this??

    Thank You