PDA

View Full Version : [FIXED] (Beta 1) NumberField IndexOutOfBoundsException When Allow Decimals...



LEWJO10@ca.com
17 Jan 2012, 7:16 AM
I get the following exception when I invoke setAllowDecimals(false) on NumberField.

Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 11
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source)
at com.sencha.gxt.cell.core.client.form.NumberInputCell.setAllowDecimals(NumberInputCell.java:79)
at com.hyperformix.pb.client.OptimizationListChart.createChartBottom(OptimizationListChart.java:639)
at com.hyperformix.pb.client.OptimizationListChart.createChart(OptimizationListChart.java:390)
at com.hyperformix.pb.client.OptimizationListChart.<init>(OptimizationListChart.java:223)
at com.hyperformix.pb.client.OptimizationChartManager.showListChart(OptimizationChartManager.java:89)
at com.hyperformix.pb.client.OptimizationChartManager.access$2(OptimizationChartManager.java:85)
at com.hyperformix.pb.client.OptimizationChartManager$1.onChange(OptimizationChartManager.java:74)
at com.hyperformix.commons.gwt.client.events.ChartChangeEvent.dispatch(ChartChangeEvent.java:48)
at com.hyperformix.commons.gwt.client.events.ChartChangeEvent.dispatch(ChartChangeEvent.java:1)
at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
at com.hyperformix.commons.gwt.client.events.EventBus.fireEvent(EventBus.java:22)
at com.hyperformix.pb.client.OptimizationGroupChart$11.onSelect(OptimizationGroupChart.java:638)
at com.sencha.gxt.widget.core.client.event.SelectEvent.dispatch(SelectEvent.java:65)
at com.sencha.gxt.widget.core.client.event.SelectEvent.dispatch(SelectEvent.java:1)
at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40
at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
at com.sencha.gxt.cell.core.client.AbstractEventCell.fireEvent(AbstractEventCell.java:89)
at com.sencha.gxt.cell.core.client.ButtonCell.onClick(ButtonCell.java:367)
at com.sencha.gxt.cell.core.client.ButtonCell.onBrowserEvent(ButtonCell.java:257)
at com.sencha.gxt.widget.core.client.cell.CellComponent.onBrowserEvent(CellComponent.java:189)
at com.sencha.gxt.widget.core.client.button.CellButtonBase.onBrowserEvent(CellButtonBase.java:158)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)

Please fix.

Thanks,
John L

WesleyMoy
19 Jan 2012, 3:45 PM
Thanks for letting us know. I've committed a fix to SVN, and the change will be reflected in the next release.

WesleyMoy
2 Mar 2012, 1:21 PM
This fix should already be bundled in an earlier beta. If you plan to test again, please use the recently released beta 4 (http://www.sencha.com/forum/showthread.php?184556-Ext-GWT-3.0-Beta-4-Now-Available). Thanks for the report.

If you continue to notice this problem with this release, please post a reply and I'll look into it.