Project: Birt
Bug 117872 Exception thrown out when add a filter in chart with Top n/Top Percent n/Bottom percent n
Reported: 2005-11-24 05:34:34 | Status: resolved fixed

details Exception thrown out when add a filter in chart with Top n/Top Percent n/Bottom percent n steps to reproduce: 1. create a data set which contains a filter 2. bind data set to a chart 3. add a filter in chart builder with Top n/Top percent n/bottom percent n actual result Exception thrown out when add a filter in chart with Top n/Top Percent n/Bottom percent n exception stack trace: t: org.eclipse.birt.chart.ui.util.ChartUIUtil$1.evaluate(ChartUIUtil.java:324) org.eclipse.birt.chart.internal.factory.DataProcessor.mapToChartResultSet(DataProcessor.java:114) org.eclipse.birt.chart.factory.Generator.bindData(Generator.java:488) org.eclipse.birt.chart.ui.util.ChartUIUtil.doLivePreview(ChartUIUtil.java:354) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.doLivePreview(TaskSelectData.java:1038) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.widgetSelected(TaskSelectData.java:590) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.open(WizardBase.java:169) org.eclipse.birt.chart.reportitem.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:179) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performDirectEdit(ExtendedEditPart.java:139) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performRequest(ExtendedEditPart.java:168) org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187) org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:129) org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:944) org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:502) org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:204) org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285) org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:141) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) org.eclipse.core.launcher.Main.basicRun(Main.java:278) org.eclipse.core.launcher.Main.run(Main.java:973) org.eclipse.core.launcher.Main.main(Main.java:948) Caused By:$NO-RB$ No value returned. Please specify a valid dataset. org.eclipse.birt.chart.ui.util.ChartUIUtil$1.evaluate(ChartUIUtil.java:324) org.eclipse.birt.chart.internal.factory.DataProcessor.mapToChartResultSet(DataProcessor.java:114) org.eclipse.birt.chart.factory.Generator.bindData(Generator.java:488) org.eclipse.birt.chart.ui.util.ChartUIUtil.doLivePreview(ChartUIUtil.java:354) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.doLivePreview(TaskSelectData.java:1038) org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData.widgetSelected(TaskSelectData.java:590) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.open(WizardBase.java:169) org.eclipse.birt.chart.reportitem.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:179) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performDirectEdit(ExtendedEditPart.java:139) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performRequest(ExtendedEditPart.java:168) org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187) org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:129) org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:944) org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:502) org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:204) org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285) org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:141) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) org.eclipse.core.launcher.Main.basicRun(Main.java:278) org.eclipse.core.launcher.Main.run(Main.java:973) org.eclipse.core.launcher.Main.main(Main.ja

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