Project: Birt
Bug 107185 Smoke Test: DataException: Invalid Javascript expression
Reported: 2005-08-17 04:22:05 | Status: closed fixed

The Step of Reproduce: 1.Obtain the latest version of engine, model, data, etc of BIRT 2.Extract them to related eclipse workspace 3.Set Project as engine project, Program arguments as grid-data-highmap- multistatement.xml, VM arguments set to -DBIRT_HOME="D:\workspace" -Xmx512M -ea and click Run button. Expected Result: There is no error in output Actual Result: Aug 17, 2005 4:13:39 PM org.eclipse.birt.report.engine.data.dte.DteDataEngine evaluate SEVERE: Invalid Javascript expression. Source: null, line: 0, Expression: <compiled script> Script engine error: ReferenceError: "Date" is not defined. org.eclipse.birt.data.engine.core.DataException: Invalid Javascript expression. Source: null, line: 0, Expression: <compiled script> Script engine error: ReferenceError: "Date" is not defined. at org.eclipse.birt.data.engine.script.ScriptEvalUtil.RethrowJSEvalException (ScriptEvalUtil.java:418) at org.eclipse.birt.data.engine.impl.BytecodeExpression.evaluate (BytecodeExpression.java:51) at org.eclipse.birt.data.engine.impl.ResultIterator.evaluateCompiledExpression (ResultIterator.java:216) at org.eclipse.birt.data.engine.impl.ResultIterator.getValue (ResultIterator.java:276) at org.eclipse.birt.data.engine.impl.ResultIterator.getValue (ResultIterator.java:286) at org.eclipse.birt.report.engine.data.dte.DteDataEngine.evaluate (DteDataEngine.java:308) at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate (ExecutionContext.java:362) at org.eclipse.birt.report.engine.executor.StyledItemExecutor.getStyleFromHighligh t(StyledItemExecutor.java:183) at org.eclipse.birt.report.engine.executor.StyledItemExecutor.setStyles (StyledItemExecutor.java:87) at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute (DataItemExecutor.java:93) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitDataItem (ReportExecutorVisitor.java:324) at org.eclipse.birt.report.engine.ir.DataItemDesign.accept (DataItemDesign.java:73) at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute (GridItemExecutor.java:131) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitGridItem (ReportExecutorVisitor.java:342) at org.eclipse.birt.report.engine.ir.GridItemDesign.accept (GridItemDesign.java:117) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute (ReportExecutor.java:162) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:159) at org.eclipse.birt.report.engine.api.ReportRunner.executeReport (ReportRunner.java:174) at org.eclipse.birt.report.engine.api.ReportRunner.execute (ReportRunner.java:115) at org.eclipse.birt.report.engine.api.ReportRunner.main (ReportRunner.java:86)

Files changed in fix:
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java