Project: Birt
Bug 237182 Report parameter type date is not recognized when debugging
Reported: 2008-06-14 00:14:56 | Status: resolved fixed

I have a report parameter of type date. The parameter input dialog pops up with the corresponding input fields ("1900-01-01" as date value - which works in the viewer). After submitting the following error occurrs: 08:34 org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer start INFO: [Server] client accepted 14.06.2008 06:08:34 org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run INFO: [Server] enter request dispatching 14.06.2008 06:08:34 org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher configEngine INFO: User class path received: 14.06.2008 06:08:36 org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher renderReport SCHWERWIEGEND: Engine exception org.eclipse.birt.report.engine.api.impl.ParameterValidationException: The type of parameter "Datumsbereich_bis" is expected as "date", not "java.lang.String". at org.eclipse.birt.report.engine.api.impl.EngineTask.validateParameterValueType(EngineTask.java:756) at org.eclipse.birt.report.engine.api.impl.EngineTask.validateScalarParameter(EngineTask.java:720) at org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:650) at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:594) at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1066) at org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:578) 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:328) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.renderReport(ReportLauncher.java:275) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.run(ReportLauncher.java:195) at org.eclipse.birt.report.debug.internal.core.launcher.ReportLauncher.main(ReportLauncher.java:86) 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 UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/parameters/ParameterFactory.java