Project: Birt
Bug 156331 NumberFormatException when clear extends property's value in report
Reported: 2006-09-06 05:23:51 | Status: closed fixed

Description: NumberFormatException when clear extends property's value in report Steps to reproduce: 1. New a library. 2. New a data source and dataset, drag the dataset to Layout. 3. Publish the library 4. New a report. 5. Drag table from library to report, click Script, clear value of extends property in table item. 6. Back to Layout. Expected result: Error msg inside table item. Actual result: SWTException. Error logs: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NumberFormatException: The input value can't be parsed.) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.NumberFormatException: The input value can't be parsed. at org.eclipse.birt.report.designer.util.FixTableLayoutCalculator.getIntColWidth(FixTableLayoutCalculator.java:308) at org.eclipse.birt.report.designer.internal.ui.layout.TableLayoutHelper.calculateColumnWidth(TableLayoutHelper.java:37) at org.eclipse.birt.report.designer.internal.ui.layout.TableLayout.caleLayoutData(TableLayout.java:611) at org.eclipse.birt.report.designer.internal.ui.layout.TableLayout.layout(TableLayout.java:158) at org.eclipse.draw2d.Figure.layout(Figure.java:1029) at org.eclipse.draw2d.Figure.validate(Figure.java:1735) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Viewport.validate(Viewport.java:363) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.Figure.validate(Figure.java:1737) at org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.calculatePreferredSize(FreeformViewport.java:28) at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:93) at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:85) at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735) at org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.java:75) at org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas.java:238) at org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:236) at org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCanvas.java:201) at org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManager.java:123) at org.eclipse.draw2d.DeferredUpdateManager.performValidation(DeferredUpdateManager.java:188) at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:165) at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:46) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 20 more

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/GraphicalPartFactory.java