Project: Birt
Bug 101827 Exception should be processed before written to error log or some error message should pop up to warn user
Reported: 2005-06-27 03:58:32 | Status: closed fixed

descrption: steps to reproduce: 1.go to chart dialog>Data>Y Axis 2.click on series grouping key Format button 3.in format spcifier dialog,choose advanced. and type some text into it. 4. click on OK button actual result: Exception thrown out expected result: Exception should be processed before written to error log or some error message should pop up to warn user exception stack trace: java.lang.NumberFormatException: For input string: "xcsdf" at java.lang.NumberFormatException.forInputString (NumberFormatException.java:48) at java.lang.FloatingDecimal.readJavaFormatString (FloatingDecimal.java:1207) at java.lang.Double.valueOf(Double.java:202) at org.eclipse.birt.chart.ui.swt.composites.FormatSpecifierComposite.buildFormatSp ecifier(FormatSpecifierComposite.java:548) at org.eclipse.birt.chart.ui.swt.composites.FormatSpecifierComposite.getFormatSpec ifier(FormatSpecifierComposite.java:521) at org.eclipse.birt.chart.ui.swt.composites.FormatSpecifierDialog.widgetSelected (FormatSpecifierDialog.java:137) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:129) 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.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)

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/event/TextRenderEvent.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java