Project: Birt
Bug 106989 IllegalArgumentException thrown out when set chart dispaly None
Reported: 2005-08-14 22:54:11 | Status: closed fixed

description Exception thrown out when set chart dispaly None steps tor reproduce: 1 set Chart display value None actual result: java.lang.IllegalArgumentException thrown out exception stack trace: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid) at org.eclipse.swt.SWT.error(SWT.java:2942) at org.eclipse.swt.SWT.error(SWT.java:2865) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) Caused by: java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:2926) at org.eclipse.swt.SWT.error(SWT.java:2865) at org.eclipse.swt.SWT.error(SWT.java:2836) at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:421) at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:256) at org.eclipse.birt.chart.reportitem.DesignerRepresentation.paintClientArea (DesignerRepresentation.java:282) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.Report DesignEditPart$1.paintChildren(ReportDesignEditPart.java:180) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1127) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientArea (ScalableFreeformLayeredPane.java:61) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1118) at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:156) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123) at org.eclipse.draw2d.Figure.paint(Figure.java:1055) at org.eclipse.draw2d.DeferredUpdateManager.repairDamage (DeferredUpdateManager.java:225) at org.eclipse.draw2d.DeferredUpdateManager.performUpdate (DeferredUpdateManager.java:145) at org.eclipse.birt.report.designer.internal.ui.editors.notification.ReportDeferre dUpdateManager.performUpdate(ReportDeferredUpdateManager.java:33) at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run (DeferredUpdateManager.java:40) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:123) ... 18 more

Files changed in fix:
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/DataPointHints.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/device/IStructureDefinitionListener.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/Chart.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/ChartWithAxes.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/ChartWithoutAxes.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/ModelFactory.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/ModelPackage.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithAxesImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithoutAxesImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelFactoryImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/LineSeries.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/TypePackage.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/AreaSeriesImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/LineSeriesImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/TypePackageImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/util/ModelAdapterFactory.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/util/ModelResourceFactoryImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/util/ModelResourceImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/util/ModelSwitch.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/CurveRenderer.java