I see the following error when i run the report command for emma,is there a fix for this problem.
JRE - 1.5
C:\Program Files\AccuRev\jre>java -cp emma.jar emma report -r html -in coverage.
em,coverage.ec
EMMA: processing input files ...
java.io.UTFDataFormatException: malformed input around byte 0
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at com.vladium.emma.data.MetaData.readExternal(MetaData.java:227)
at com.vladium.emma.data.DataFactory.readEntry(DataFactory.java:770)
at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:461)
at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:175
)
at com.vladium.emma.Processor.run(Processor.java:54)
at com.vladium.emma.report.reportCommand.run(reportCommand.java:130)
at emma.main(emma.java:40)
I am seeing a similar intermittent problem:
/usr/local/java/jdk1.5.0_14/jre/bin/java -cp /usr/local/share/java/javadb/JavaDB-trunk_debug/lib/test/emma.jar emma report -in /log/scratch/testresults/derby/emma/jvm1.5/sol/suitesAll72540/suitesAll.frigg20.coverage.em -in /log/scratch/testresults/derby/emma/jvm1.5/sol/suitesAll72540/suitesAll.suitesAll_0.frigg20.coverage.ec -r txt -r xml -r html -Dreport.html.out.file=/log/scratch/testresults/derby/emma/jvm1.5/sol/suitesAll72540/suitesAll.coveragereport.html -Dreport.xml.out.file=/log/scratch/testresults/derby/emma/jvm1.5/sol/suitesAll72540/suitesAll.coveragereport.xml -Dreport.txt.out.file=/log/scratch/testresults/derby/emma/jvm1.5/sol/suitesAll72540/suitesAll.coveragereport.txt -quiet -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/client -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/demo -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/drda -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/engine -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/shared -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/storeless -sp /home/pakker/JavaDBbuild/JavaDB-trunk_debug/pakkJavaDB/bld/derby/code/java/tools -Dreport.sort=+name,+block,+method,+class
11/12 04:48:51.115 INF Thr{0011} EMMAConfiguration.executeCmd: EMMA output:
java.io.UTFDataFormatException: malformed input around byte 52
at java.io.DataInputStream.readUTF(DataInputStream.java:612)
at java.io.DataInputStream.readUTF(DataInputStream.java:522)
at com.vladium.emma.data.ClassDescriptor.readExternal(ClassDescriptor.java:171)
at com.vladium.emma.data.MetaData.readExternal(MetaData.java:228)
at com.vladium.emma.data.DataFactory.readEntry(DataFactory.java:770)
at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:461)
at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:175)
at com.vladium.emma.Processor.run(Processor.java:54)
at com.vladium.emma.report.reportCommand.run(reportCommand.java:130)
at emma.main(emma.java:40)
EMMA err output: