Hi!
I have a problem -- what an exceptional thing

This is too bad, I just don't know why the following code doesn't work. It is especially embarrassing as I allready asked a very similar question for version 4.6 (
http://rapid-i.com/rapidforum/index.php/topic,1028.0.html)! But I can neither remember the solution nor find the final code :-[ :
ExampleTable table = exampleSet.getExampleTable();
table.addAttribute(resultAttr);
exampleSet.getAttributes().addRegular(resultAttr);
DataRowReader reader = table.getDataRowReader();
while(reader.hasNext()) {
reader.next().set(resultAttr, 1.0d);
}
I always get an [tt]ArrayIndexOutOfBoundsException[/tt] at [tt]com.rapidminer.example.table.DoubleArrayDataRow.set[/tt]!
What am I doing wrong?
Best regards,
chero
P.S.: Just for completeness: I wrote my own ExampleSet class, so [tt]exampleSet[/tt] from above is of class [tt]Point2DExampleSet[/tt]. But all used methods are copied from [tt]SimpleExampleSet[/tt].