Project: Birt
Bug 245502 [Regression] Debug report with date type parameter will lead to exception.
Reported: 2008-08-28 05:12:48 | Status: closed fixed

description: Debug report with date type parameter will lead to exception. build id: 2.3.1 v20080828-1307 steps to reproduce: 1. New a report with a data type parameter. 2. Debug the report with default setting. 3. When the parameter dialog pops up, enter '1900-01-01' Actual result: Excepiton throws out. Please see error log. But if you preview the report, it works well. Error log: org.eclipse.birt.report.engine.api.impl.ParameterValidationException: The type of parameter "NewParameter" is expected as "date", not "java.lang.String". at org.eclipse.birt.report.engine.api.impl.EngineTask.validateParameterValueType(EngineTask.java:766) at org.eclipse.birt.report.engine.api.impl.EngineTask.validateScalarParameter(EngineTask.java:730) at org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:660) at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:604) at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1076) at org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:588) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:84) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:72) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.createReport(ReportLauncher.java:540) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.renderReport(ReportLauncher.java:487) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.run(ReportLauncher.java:405) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.main(ReportLauncher.java:103) at org.eclipse.birt.report.debug.internal.core.ReportDebugger.start(ReportDebugger.java:39) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Files changed in fix:
UI/org.eclipse.birt.report.debug.core/src/org/eclipse/birt/report/debug/internal/core/launcher/ReportLauncher.java