Menu

#41 (DUPLICATE) ArrayIndexOutOfBoundsException

closed-duplicate
REPORTS (28)
5
2005-06-19
2005-06-19
SimplyJe
No

Hello,

I got the following stack trace: At the end I have also
give the ant build.xml, I was running.

emmarun:
[emmajava] EMMA: processing classpath ...
[emmajava] EMMA: package [org/apache/log4j/jmx]
contains classes [AbstractDynamicMBean] without full
debug info
[emmajava] EMMA: package [org/apache/log4j/net]
contains classes [DefaultEvaluator] without full debug
info
[emmajava] EMMA: package [org/apache/log4j/or/jms]
contains classes [MessageRenderer] without full debug
info
[emmajava] EMMA: package [org/apache/log4j/xml]
contains classes [XMLLayout] without full debug info
[emmajava] EMMA: [833 class(es) processed in 2015
ms]
[emmajava] EMMA: not all instrumented classes were
compiled with source file
[emmajava] EMMA: debug data: no sources will be
embedded in the report.
[emmajava] EMMA: line coverage requested in a report
of type [html] but
[emmajava] EMMA: not all instrumented classes were
compiled with line number
[emmajava] EMMA: debug data: this column will be
removed from the report.
[emmajava] EMMA: showing up to 3 classes without
full debug info per package:
[emmajava] EMMA: org.apache.log4j.jmx.Agent
[emmajava] EMMA:
org.apache.log4j.jmx.LoggerDynamicMBean
[emmajava] EMMA: org.apache.log4j.jmx.MethodUnion
[emmajava] EMMA:
org.apache.log4j.net.DefaultEvaluator
[emmajava] EMMA:
org.apache.log4j.net.JMSAppender
[emmajava] EMMA: org.apache.log4j.net.JMSSink
[emmajava] EMMA:
org.apache.log4j.or.jms.MessageRenderer
[emmajava] EMMA: org.apache.log4j.xml.XMLLayout
[emmajava] EMMA: [emma.rt.AppRunner] exception
while creating a
report:java.lang.ArrayIndexOutOfBoundsException: 3
[emmajava] at
com.vladium.emma.report.AbstractReportGenerator.initia
lize(AbstractReportGenerator.java:190)
[emmajava] at
com.vladium.emma.report.html.ReportGenerator.process
(ReportGenerator.java:85)
[emmajava] at
com.vladium.emma.rt.AppRunner$AppRunnerExitHook.r
un(AppRunner.java:741)
[emmajava] at com.vladium.emma.rt.AppRunner._run
(AppRunner.java:588)
[emmajava] at com.vladium.emma.rt.AppRunner.run
(AppRunner.java:97)
[emmajava] at com.vladium.emma.runCommand.run
(runCommand.java:247)
[emmajava] at emmarun.main(emmarun.java:27)
[emmajava] [EMMA v2.0, build 4217]
[emmajava] emmarun: [UNEXPECTED_FAILURE]
unexpected failure
java.lang.ArrayIndexOutOfBoundsException: 3, please
submit a bug report
to: 'http://sourceforge.net/projects/emma'
[emmajava]
com.vladium.emma.EMMARuntimeException:
[UNEXPECTED_FAILURE] unexpected failure
java.lang.ArrayIndexOutOfBoundsException: 3, please
submit a bug report
to: 'http://sourceforge.net/projects/emma'
[emmajava] at
com.vladium.emma.rt.AppRunner.wrapFailure
(AppRunner.java:885)
[emmajava] at com.vladium.emma.rt.AppRunner._run
(AppRunner.java:629)
[emmajava] at com.vladium.emma.rt.AppRunner.run
(AppRunner.java:97)
[emmajava] at com.vladium.emma.runCommand.run
(runCommand.java:247)
[emmajava] at emmarun.main(emmarun.java:27)
[emmajava] Caused by:
java.lang.ArrayIndexOutOfBoundsException: 3
[emmajava] at
com.vladium.emma.report.AbstractReportGenerator.initia
lize(AbstractReportGenerator.java:190)
[emmajava] at
com.vladium.emma.report.html.ReportGenerator.process
(ReportGenerator.java:85)
[emmajava] at
com.vladium.emma.rt.AppRunner$AppRunnerExitHook.r
un(AppRunner.java:741)
[emmajava] at com.vladium.emma.rt.AppRunner._run
(AppRunner.java:588)
[emmajava] ... 3 more
[emmajava] Exception in thread "main"
[emmajava] Java Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds

BUILD.XML, I was running is as below:

<?xml version="1.0"?>
<project name="hexcore" default="emmarun"
basedir=".">

<!--application name-->
<property name="app.name" value="GalHex
Core" />

<!--project related-->
<property name="src" value="${basedir}
\src" />
<property name="lib" value="${basedir}\lib" />
<property name="tst.dir" value="${basedir}
\test" />
<property name="build.dir" value="${basedir}
\bin" />
<property name="build.dist" value="${basedir}
\delivery" />
<property name="TALK" value="false" />
<property name="path.jre"
value="C:\Program Files\Java\j2re1.4.2_04\bin\javaw" />

<!-- project class path ref, this includes: -->
<!-- 1. hexcore.jar - the src for which junit
was written-->
<!-- 2. hexcoreTest.jar - jar with main file
(CoreTest.java) which
invokes the junit for
the GalaxyHex project-->
<property name="hex.lib" value="${lib}" />
<path id="hex.lib">
<fileset dir="${lib}"
includes="*.jar"/>
</path>

<!--Emma related -->
<property name="emma.enabled"
value="true" />
<!-- class path ref for Emma -->
<property name="emma.dir"
value="D:\Tools\Emma" />
<path id="emma.lib">
<fileset dir="${emma.dir}"
includes="*.jar" />
</path>
<taskdef resource="emma_ant.properties"
classpathref="emma.lib" />

<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory
structure used by compile -->
<!-- create directories -->
<echo message="Preparing the
build directories" />
<mkdir dir="${build.dir}" />
</target>
<target name="emmarun" depends="init">
<emmajava
enabled="${emma.enabled}" libclasspathref="emma.lib"
fullmetadata="true"
classname="com.bosch.galaxy.hex.core.TestCore"
classpathref="hex.lib">
<sourcepath>
<dirset
dir="${src}">

<include name="**/*.java" />
</dirset>
</sourcepath>
<html
outfile="${coverage.dir}/index.html" columns="name,
method, line" sort="+line, +name" metrics="line:80" />
</emmajava>
</target>

<target name="cleanup">
<!-- clear the bin dir-->
<echo message="Cleaning the
bin dir" />
<delete verbose="${TALK}">
<fileset
dir="${build.dir}" includes="**/*.class" />
</delete>
</target>

</project>

Discussion

  • SimplyJe

    SimplyJe - 2005-06-19

    build.xml

     
  • Vlad Roubtsov

    Vlad Roubtsov - 2005-06-19
    • labels: 639829 --> REPORTS
    • milestone: 410874 --> release fixed: 2.0.5312
    • summary: [emma.rt.AppRunner] - ArrayIndexOutOfBoundsException --> (DUPLICATE) ArrayIndexOutOfBoundsException
    • status: open --> closed-duplicate
     

Log in to post a comment.