艾玛报道工具

时间:2010-06-30 13:22:12

标签: emma

尝试使用emma ctl工具获取覆盖率数据时出现以下错误。

EMMA: processing control command sequence ...
EMMA: executing [coverage.get (C:/FD_DEV3/feddebt_sources/report/emma/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.io.StreamCorruptedException: invalid stream header
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:770)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:286)
        at com.vladium.emma.rt.rpc.Response.read(Response.java:46)
        at com.vladium.emma.rt.RTControllerClientProxy.execute(RTControllerClientProxy.java:100)
        at com.vladium.emma.ctl.CtlProcessor._run(CtlProcessor.java:231)
        ... 3 more

请帮忙。

由于

1 个答案:

答案 0 :(得分:0)

原因是:

罐子不正确。确保罐子是正确的。

另一个错误是您没有将jar放在java / jre文件夹中。