Project: Birt
Bug 103982 data.engine.core.DataException:Cannot convert parameter value
Reported: 2005-07-15 05:46:01 | Status: closed fixed

The Step of Reproduce: 1.Obtain the latest version of engine, model, data, etc of IRAD 2.Extract them to related eclipse workspace 3.Set Project as engine project, Program arguments as scalarparameter-datetime- dataset.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: Jul 15, 2005 5:38:09 PM org.eclipse.birt.report.engine.data.dte.DteDataEngine execute SEVERE: Cannot convert the parameter value [Thu Jun 01 02:00:00 GMT+08:00 2000] to type [class java.util.Date] Date org.eclipse.birt.data.engine.core.DataException: Cannot convert the parameter value [Thu Jun 01 02:00:00 GMT+08:00 2000] to type [class java.util.Date] Date at org.eclipse.birt.data.engine.executor.DataSourceQuery.convertToValue (DataSourceQuery.java:574) at org.eclipse.birt.data.engine.executor.DataSourceQuery.addParameterHints (DataSourceQuery.java:410) at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare (DataSourceQuery.java:298) at org.eclipse.birt.data.engine.impl.PreparedExtendedDSQuery$ExtendedDSQueryExecut or.prepareOdiQuery(PreparedExtendedDSQuery.java:243) at org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.prepareExecution (PreparedQuery.java:472) at org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.access$0 (PreparedQuery.java:444) at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare (PreparedQuery.java:171) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute (PreparedDataSourceQuery.java:137) at org.eclipse.birt.report.engine.data.dte.DteDataEngine.execute (DteDataEngine.java:216) at org.eclipse.birt.report.engine.executor.ReportItemExecutor.openResultSet (ReportItemExecutor.java:140) at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute (TableItemExecutor.java:139) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitTableItem (ReportExecutorVisitor.java:360) at org.eclipse.birt.report.engine.ir.TableItemDesign.accept (TableItemDesign.java:72) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute (ReportExecutor.java:162) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:152) 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) Caused by: org.eclipse.birt.core.exception.BirtException: Date at org.eclipse.birt.core.data.DataTypeUtil.toDate (DataTypeUtil.java:389) at org.eclipse.birt.core.data.DataTypeUtil.toDate (DataTypeUtil.java:681) at org.eclipse.birt.core.data.DataTypeUtil.toDate (DataTypeUtil.java:337) at org.eclipse.birt.data.engine.executor.DataSourceQuery.convertToValue (DataSourceQuery.java:559) ... 17 more

Files changed in fix:
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java