#106 ArrayIndexOutOfBounds during instrumentation

open
nobody
None
5
2009-03-03
2009-03-03
No

Emma says:
com.vladium.emma.EMMARuntimeException: [UNEXPECTED_FAILURE] unexpected failure java.lang.ArrayIndexOutOfBoundsException: 14, please submit a bug report to: 'http://sourceforge.net/projects/emma'

EMMA v2.1, build 5320 (stable) (2005/06/20 22:08:27)
JDK is 1.6.0_07 (Apple, Mac OS X.5.6)

Attachment: output of instr ant task with verbosity "trace3"

Maybe someone can figure out which class is causing the problem?!

Discussion

  • same sources, same emma version but JDK 1.6.0_10 and a Windows 2003 Server instead of OS X work well?!

    This is my emma call using ant 1.7.1 (in both servers):
    <target name="instrument-emma"
    description="Instrument given dir(ectory) for emma code coverage analysis">
    <emma enabled="${emma.enabled}">
    <instr instrpath="${dir}" mode="overwrite" verbosity="trace3"/>
    </emma>
    </target>

     
  • Having the same problem on a Ubuntu 8.04 Hudson (Glassfish) http://www.randi2.org:8080/hudson:
    Please ask if I could add any information - I don't see a connection ....

    ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] [UNEXPECTED_FAILURE] unexpected failure java.lang.ArrayIndexOutOfBoundsException: 15, please submit a bug report to: 'http://sourceforge.net/projects/emma'
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    com.vladium.emma.EMMARuntimeException: [UNEXPECTED_FAILURE] unexpected failure java.lang.ArrayIndexOutOfBoundsException: 15, please submit a bug report to: 'http://sourceforge.net/projects/emma'
    at com.vladium.emma.instr.InstrProcessorST._run(InstrProcessorST.java:784)
    at com.vladium.emma.Processor.run(Processor.java:54)
    at org.codehaus.mojo.emma.task.InstrumentTask.execute(InstrumentTask.java:111)
    at org.codehaus.mojo.emma.EmmaInstrumentMojo.doExecute(EmmaInstrumentMojo.java:155)
    at org.codehaus.mojo.emma.AbstractEmmaMojo.execute(AbstractEmmaMojo.java:98)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
    at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
    at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at hudson.maven.agent.Main.launch(Main.java:158)
    at hudson.maven.MavenBuilder.call(MavenBuilder.java:162)
    at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:577)
    at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:523)
    at hudson.remoting.UserRequest.perform(UserRequest.java:92)
    at hudson.remoting.UserRequest.perform(UserRequest.java:46)
    at hudson.remoting.Request$2.run(Request.java:236)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 15
    at com.vladium.emma.instr.InstrVisitor$Block.emit(InstrVisitor.java:1445)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:1144)
    at com.vladium.jcd.cls.attribute.CodeAttribute_info.accept(CodeAttribute_info.java:137)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:446)
    at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:255)
    at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)
    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.enumerate(IPathEnumerator.java:97)
    at com.vladium.emma.instr.InstrProcessorST._run(InstrProcessorST.java:715)
    ... 39 more