然后我对代码的Classes进行插装
java emma instr -m overwrite -ip /data/application/kitchen/WEB-INF/classes -Dmetadata.out.file=/soft/coverage.em
在soft 下也看到了coverage .em
重启项目
之后,输入指令:
java emma ctl -connect localhost:47653 -command coverage.get,data/coverage.ec
就报错了EMMA: processing control command sequence ...
EMMA: executing [coverage.get (root/coverage.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.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:241)
at com.vladium.emma.rt.RTControllerClientProxy.execute(RTControllerClientProxy.java:84)
at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:231)
... 3 more