Project: Birt
Bug 160803 Exception is thrown out when double click the chart
Reported: 2006-10-13 01:17:02 | Status: closed fixed

Exception is thrown out when double click the chart Steps to reproduce: 1. New a sample data source 2. New a data set: select * from CLASSICMODELS.CUSTOMERS 3. Drag a chart from palette view to layout 4. Click "Select Data" button, Select "Use Data Set"-"dSet"; X Series: Data Definitions = row["ORDERNAME"]; Y Series-Decoration Label: Data Definitions = row["COSTOMERNUMBER"]; 5. Click Finish, and preview. 6. Double click the chart in lay out Expected result: No exception is thrown out. Actual result: Exception is thrown out Error Log: org.eclipse.birt.chart.exception.ChartException at: org.eclipse.birt.chart.factory.Generator.build(Generator.java:983) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.updateBuffer(ChartPreviewPainter.java:152) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.controlResized(ChartPreviewPainter.java:363) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:149) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933) org.eclipse.swt.widgets.Control.WM_SIZE(Control.java:3882) org.eclipse.swt.widgets.Scrollable.WM_SIZE(Scrollable.java:333) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1266) org.eclipse.swt.widgets.Canvas.WM_SIZE(Canvas.java:303) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:703) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:669) org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:875) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1281) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:703) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:669) org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:875) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1281) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method) org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1225) org.eclipse.swt.widgets.Control.setBounds(Control.java:2138) org.eclipse.swt.widgets.Control.setBounds(Control.java:2120) org.eclipse.swt.widgets.Control.setBounds(Control.java:2116) org.eclipse.swt.widgets.Control.setBounds(Control.java:2185) org.eclipse.swt.custom.CTabItem.setControl(CTabItem.java:673) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase$WizardBaseDialog.switchTask(WizardBase.java:792) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.switchTo(WizardBase.java:244) org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.switchTo(ChartWizard.java:259) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase$WizardBaseDialog.widgetSelected(WizardBase.java:977) 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:928) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709) org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171) org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953) org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3390) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3009) org.eclipse.jface.window.Window.runEventLoop(Window.java:820) org.eclipse.jface.window.Window.open(Window.java:796) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.open(WizardBase.java:104) org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.open(ChartWizard.java:212) org.eclipse.birt.chart.reportitem.ui.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:187) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performDirectEdit(ExtendedEditPart.java:153) org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.ReportElementEditPart.performRequest(ReportElementEditPart.java:121) org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187) org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131) org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:944) org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501) 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:508) 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:928) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3390) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3009) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.core.launcher.Main.invokeFramework(Main.java:341) org.eclipse.core.launcher.Main.basicRun(Main.java:285) org.eclipse.core.launcher.Main.run(Main.java:987) org.eclipse.core.launcher.Main.main(Main.java:962) Caused By:Unable to use a text data to render a numerical/datetime axis. org.eclipse.birt.chart.computation.withaxes.PlotWithAxes.getTypedDataSet(PlotWithAxes.java:657) org.eclipse.birt.chart.computation.withaxes.PlotWithAxes.getTypedDataSet(PlotWithAxes.java:635) org.eclipse.birt.chart.computation.withaxes.PlotWith2DAxes.compute(PlotWith2DAxes.java:782) org.eclipse.birt.chart.factory.Generator.build(Generator.java:979) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.updateBuffer(ChartPreviewPainter.java:152) org.eclipse.birt.chart.ui.swt.wizard.internal.ChartPreviewPainter.controlResized(ChartPreviewPainter.java:363) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:149) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933) org.eclipse.swt.widgets.Control.WM_SIZE(Control.java:3882) org.eclipse.swt.widgets.Scrollable.WM_SIZE(Scrollable.java:333) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1266) org.eclipse.swt.widgets.Canvas.WM_SIZE(Canvas.java:303) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:703) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:669) org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:875) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1281) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:703) org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:669) org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:875) org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1281) org.eclipse.swt.widgets.Control.windowProc(Control.java:3323) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1959) org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77) org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) org.eclipse.swt.widgets.Display.windowProc(Display.java:4059) org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method) org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1225) org.eclipse.swt.widgets.Control.setBounds(Control.java:2138) org.eclipse.swt.widgets.Control.setBounds(Control.java:2120) org.eclipse.swt.widgets.Control.setBounds(Control.java:2116) org.eclipse.swt.widgets.Control.setBounds(Control.java:2185) org.eclipse.swt.custom.CTabItem.setControl(CTabItem.java:673) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase$WizardBaseDialog.switchTask(WizardBase.java:792) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.switchTo(WizardBase.java:244) org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.switchTo(ChartWizard.java:259) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase$WizardBaseDialog.widgetSelected(WizardBase.java:977) 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:928) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709) org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171) org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953) org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3390) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3009) org.eclipse.jface.window.Window.runEventLoop(Window.java:820) org.eclipse.jface.window.Window.open(Window.java:796) org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.open(WizardBase.java:104) org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.open(ChartWizard.java:212) org.eclipse.birt.chart.reportitem.ui.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:187) org.eclipse.birt.report.designer.internal.ui.extension.ExtendedEditPart.performDirectEdit(ExtendedEditPart.java:153) org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.ReportElementEditPart.performRequest(ReportElementEditPart.java:121) org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187) org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131) org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:944) org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501) 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:508) 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:928) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3390) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3009) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.core.launcher.Main.invokeFramework(Main.java:341) org.eclipse.core.launcher.Main.basicRun(Main.java:285) org.eclipse.core.launcher.Main.run(Main.java:987) org.eclipse.core.launcher.Main.main(Main.java:962)

Files changed in fix:
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BubbleChart.java