title: Eclipse BIRT scripted report: 'Invalid javascript expression: dataSetRow' exception
body: <p>I am using Eclipse's BIRT to render a report through Java using <code>org.eclipse.birt.runtime</code> version <code>4.4.0</code>.</p>
  
  <p>When attempting to render the report, BIRT is returning:</p>
  
  <p><code>org.eclipse.birt.data.engine.core.DataException: Invalid Javascript expression: dataSetRow["name"].</code>
   (and similar errors for each <code>dataSetRow</code> and <code>row</code>) in <code>.getErrors()</code> of the <code>IRunAndRenderTask</code>;</p>
  
  <p>The template works fine using the BIRT designer and rendering it through that application, but it breaks when trying to render using Java.</p>
  
  <p>I've done extensive searching throughout the web, and many people have suggested the presence of  conflicting <code>js.jar</code> present in the application. This is not the case in the application I'm working on. The only javascript/rhino instances are those being imported through BIRT.</p>
  
  <p>I've also attempted the following solutions:</p>
  
  <ul>
  <li>Excluding the bundled javascript and importing latest Rhino/javascript from Mozilla</li>
  <li>Updating BIRT to <code>4.4.1</code> and creating a report template with the latest BIRT designer</li>
  <li>Degrading the report template to only show one value returned by the DB (in this case 'name' of a dealership)</li>
  </ul>
  
  <p>This project is using Maven, and is running in Tomcat 7 - using Java 6.</p>
  
  <p>The database is using mysql.</p>
  
  <p>More details can be provided if requested.</p>
  
  <hr>
  
  <p>EDIT: Been fiddling around with this problem for a little bit and have found the following:</p>
  
  <ul>
  <li>Basic reports that do not hit the database render fine - even javascript expressions</li>
  <li>Once I attempt to get datasets out of a query, then the Invalid Javascript expression gets thrown, for e.g. in this section of the template: <code>&lt;data id="624"&gt;
          &lt;property name="dataSet"&gt;Dealership&lt;/property&gt;
          &lt;list-property name="boundDataColumns"&gt;
              &lt;structure&gt;
                  &lt;property name="name"&gt;name&lt;/property&gt;
                  &lt;text-property name="displayName"&gt;name&lt;/text-property&gt;
                  &lt;expression name="expression" type="javascript"&gt;dataSetRow["name"]&lt;/expression&gt;
                  &lt;property name="dataType"&gt;string&lt;/property&gt;
              &lt;/structure&gt;
          &lt;/list-property&gt;
          &lt;property name="resultSetColumn"&gt;name&lt;/property&gt;
      &lt;/data&gt;</code>
  <ul>
  <li>Any value placed in the above <code>datasetRow</code> section throws an Invalid Javascript error</li>
  </ul></li>
  </ul>