Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Data set preview throws error on "__bm_onFetch()"
ghkr
A BIRT exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:2.3.2.r232_v20090521
Error Code:data.engine.BirtException
Error Message:A BIRT exception occurred: There are errors evaluating script "__bm_onFetch()":
Wrapped java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 (<inline>#57).. See next exception for more information.
There are errors evaluating script "__bm_onFetch()":
Wrapped java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 (<inline>#57).
And the code it is pointing to is:
// Find the index of this iteration (target.name)
index = 0;
for (j=0; j<burndown.size(); j++) {
if (burndown.get(j).get("NAME") == plannedIteration) {
index = j;
break;
}
}
//new impl
var vel = burndown.get(index).get("VELOCITY");
if (vel == null) {
vel = 0.0;
}
else {
vel = parseFloat(vel);
}
vel += parseFloat(points);
Can someone please help resolve this.
Thanks In Advance
Find more posts tagged with
Comments
mwilliams
Hi ghkr,
The error means you're trying to access an index of your array variable that doesn't exist. Are you sure there is data coming through your burndown array? If there isn't and you attempt to access it with burndown[x], you'll get an exception because no value exists. You might try checking what index value you end up trying to grab against the length of the array.