Hello Forum,<br />
<br />
I'm using BIRT 2.5<br />
<br />
Testing the platform for the first time, I'm trying to create a scripted dataset.<br />
<br />
In the attached rptdesign I've created 1 data set, I'm feeding the dataset in the open command with the following code:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>public static List<Map<String, Object>> birtTest() {
List<Map<String, Object>> retTest = new ArrayList<Map<String,Object>>();
for(int i = 0; i < 10; i++) {
Map<String, Object> m = new HashMap<String, Object>();
m.put("a", "a" + i);
m.put("b", "b" + i);
m.put("c", "c" + i);
retTest.add(m);
}
return retTest;
}</pre>Why I try to run the report it fails with the following error:<br />
<br />
I have narrowed down the problem to the statement iter.hasNext() in the fetch handler.<br />
<br />
This is odd because I'm following this example: <a class='bbc_url' href='
http://wiki.eclipse.org/index.php/BIRT/FAQ/Data_Access#Q:_How_do_I_get_data_from_a_POJO_.28Plain_Old_Java_Object.29.3F'>BIRT/FAQ/Data Access - Eclipsepedia</a><br />
<br />
Could someone please suggest what is it that I'm doing wrong?