I have the same problem !
It happens in 90% of cases i try .
I call this timer after i add a record in the list since adding record is asynch and i wanted for debug reasons to see the list size after 2 seconds.
It happens in 90% of cases i try .
Code:
new Timer(){ public void run(){ try { System.out.println("Nr:"+boundList.getRecords().length); } catch (Exception e) { e.printStackTrace(); }}}.schedule(2000);
Code:
###############################156 com.google.gwt.dev.shell.HostedModeException: Expected primitive type int; actual value was undefined at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:209) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.smartgwt.client.util.JSOHelper.getJavaScriptObjectArraySize(JSOHelper.java) at com.smartgwt.client.util.JSOHelper.toArray(JSOHelper.java:80) at com.smartgwt.client.widgets.grid.ListGrid.convertToListGridRecordArray(ListGrid.java:5312) at com.smartgwt.client.widgets.grid.ListGrid.getRecords(ListGrid.java:4963) at ccs.gescont.client.GenericDataSourceCanvas$5$2.run(GenericDataSourceCanvas.java:213) at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160) at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146) at com.google.gwt.user.client.Timer.fire(Timer.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.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.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
Comment