UNEXPECTED_FAILURE with EMMA

Hi,

I'm getting lots of

[11:18:47]:                                 [EMMA: Instrumenting classes] EMMA: processing instrumentation path ...
[11:18:47]:                                 [EMMA: Instrumenting classes] [EMMA v0.0, build 0 (unsupported private build)]
[11:18:47]:                                 [EMMA: Instrumenting classes] emma instr: [UNEXPECTED_FAILURE] unexpected failure java.lang.ArrayIndexOutOfBoundsException, please submit a bug report to: 'this private build is unsupported'

Here's the complete stacktrace:

com.vladium.emma.EMMARuntimeException: [UNEXPECTED_FAILURE] unexpected failure java.lang.ArrayIndexOutOfBoundsException: 14, please submit a bug report to: 'this private build is unsupported'
    at com.vladium.emma.instr.InstrProcessorST._run(InstrProcessorST.java:784)
    at com.vladium.emma.Processor.run(Processor.java:88)
    at com.vladium.emma.instr.instrCommand.run(instrCommand.java:172)
    at jetbrains.buildServer.coverage.emma.EmmaCoverageSupport.instrumentClasses(EmmaCoverageSupport.java:98)
    at jetbrains.buildServer.coverage.emma.EmmaAntTaskExtension.taskFinished(EmmaAntTaskExtension.java:102)
    at jetbrains.buildServer.agent.ant.AgentBuildListener$ExtensionsProcessor.taskFinished(AgentBuildListener.java:266)
    at jetbrains.buildServer.agent.ant.AgentBuildListener.taskFinished(AgentBuildListener.java:184)
    at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2154)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 14
    at com.vladium.emma.instr.InstrVisitor$Block.emit(InstrVisitor.java:1484)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:1163)
    at com.vladium.jcd.cls.attribute.CodeAttribute_info.accept(CodeAttribute_info.java:137)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:465)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:274)
    at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:118)
    at com.vladium.emma.instr.InstrProcessorST.handleFile(InstrProcessorST.java:471)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:193)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:177)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:177)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:177)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:177)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumeratePathDir(IPathEnumerator.java:177)
    at com.vladium.util.IPathEnumerator$Factory$PathEnumerator.enumerate(IPathEnumerator.java:97)
    at com.vladium.emma.instr.InstrProcessorST._run(InstrProcessorST.java:715)
    ... 43 more

Any ideas? I tried both TeamCity 4.5.5 and 5.0 (build 10574)

Thanks!

3 comments
Comment actions Permalink

Looks like some internal problem in Emma. Have you tried to use IDEA coverage engine bundled with TeamCity 5.0?

0
Comment actions Permalink

Yes, I did try IDEA, and although it instrumentated with no exceptions, the source highlighting (when it shows the lines with green or red, if they are covered or not) is completely broken in my build. It just makes no sense.

Regarding EMMA UNEXPECTED_FAILURE, I found out how to solve it: if I compile against a 32 bit Linux JDK, the problem is gone. If, however, I compile against 64 bit, I get this error.

Should I report it?

Thanks,

Alejandro

0
Comment actions Permalink

Hello,

   I think you've faced already reported problem: http://youtrack.jetbrains.net/issue/TW-4935

   Please vote, and please report details of coverage problems with IDEA engine (it is more likely to be fixed soon)

   Regards,
   KIR

0

Please sign in to leave a comment.