Dear SmartGWT Crew,
SmartClient Version: SNAPSHOT_v9.1d_2013-10-10/EVAL Deployment (expires 2013.12.09_11.30.14) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
Browser: FireFox 24
We are trying to upgrade to the latest version of SmartGWT from a very old version. For the most part it has gone quiet smoothly. There are few exceptions that I see in DevMode which crashes the app. (Though in production it runs fine.)
1. Let me start with the stangest one. I have a datasource which uses a 'sequence' as its primary key. The display field is text. I have a databound SelectItem which uses this datasourcce. I have SelectItem widgets elsewhere using a value map that is locally built. In that case both the key and the display text is string and I am able to select the value with a selectValue(<numeric id corresponding to the string key of teh value map>). The list properly displays the label corresponding to the key. I cannot seem to get this behaviour with a databound SelectItem even when I change the sequence key to a text type (to make it just like the local map that works elsewhere). I thought there might be a race condition, so I put the setValue statement in a data arrived handler for the datasource being used, but it still doesnt' work. Setting teh default value(s) also seem to be ignored.
I noticed a lot of people had similar issues. It would be great to have an example somewhere of exactly this situation that warns (maybe with code comments) of pitfalls that one can easily run into. I must have this working because it's a use case that is very common...
Any ideas why my selectValue doesn't select the item? In the developer console I see the values coming in. I'm passing it the right code, but still the label doesn't change.
2. The following is a code snippet that I believe should work because it looks just like your examples:
final DynamicForm form = new DynamicForm();
form.setGroupTitle("My Group Ttile");
//TODO: why can't I do this. SGWT complains of the widget having been already constructed. No way!
if (GWT.isScript()){
form.setIsGroup(true);
}
If I take the isScript guard off this will crash DevMode.
The following errors seem harmless enough but they create a lot of noise. I'd like to get rid them:
3. I get this often. I'm not sure what is causing it and how I can go about fixing it. It doesn't seem to be an issue as far as running the app goes.
ERROR: 10:49:08.878:WARN:PickList:Use addInterfaceProperties() to add methods to interface [Class PickList]
com.smartgwt.client.core.JsObject$SGWT_WARN: 10:49:08.878:WARN:PickList:Use addInterfaceProperties() to add methods to interface [Class PickList]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
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:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.util.I18nUtil.initMessages(I18nUtil.java)
at com.smartgwt.client.util.I18nUtil.init(I18nUtil.java:32)
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:348)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
4. Is this one related to the previous one. This is another one that seems to come from deep within some library jar. I don't see any of our classes in the stack trace....Why did Ajax fail? The app seems to be running fine.
ERROR: Ajax call failed.
com.google.gwt.user.client.rpc.StatusCodeException: 0
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:209)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:258)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
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:242)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
ERROR: Ajax call failed.
5. Finally when bootstrapping smartgwt in the startup html page, what does this really mean ?isc_version=9.1.js. Don't I already select the version by including teh right jars.
Thanks in advance for any help. The first one is an actual real problem that can be show-stopper for us. The rest are less critical.
(Clearly a lot of thought was put into backward compatibility. Most things worked out of the box, despite the fact we upgraded from a very old version.)
-kornel
SmartClient Version: SNAPSHOT_v9.1d_2013-10-10/EVAL Deployment (expires 2013.12.09_11.30.14) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
Browser: FireFox 24
We are trying to upgrade to the latest version of SmartGWT from a very old version. For the most part it has gone quiet smoothly. There are few exceptions that I see in DevMode which crashes the app. (Though in production it runs fine.)
1. Let me start with the stangest one. I have a datasource which uses a 'sequence' as its primary key. The display field is text. I have a databound SelectItem which uses this datasourcce. I have SelectItem widgets elsewhere using a value map that is locally built. In that case both the key and the display text is string and I am able to select the value with a selectValue(<numeric id corresponding to the string key of teh value map>). The list properly displays the label corresponding to the key. I cannot seem to get this behaviour with a databound SelectItem even when I change the sequence key to a text type (to make it just like the local map that works elsewhere). I thought there might be a race condition, so I put the setValue statement in a data arrived handler for the datasource being used, but it still doesnt' work. Setting teh default value(s) also seem to be ignored.
I noticed a lot of people had similar issues. It would be great to have an example somewhere of exactly this situation that warns (maybe with code comments) of pitfalls that one can easily run into. I must have this working because it's a use case that is very common...
Any ideas why my selectValue doesn't select the item? In the developer console I see the values coming in. I'm passing it the right code, but still the label doesn't change.
2. The following is a code snippet that I believe should work because it looks just like your examples:
final DynamicForm form = new DynamicForm();
form.setGroupTitle("My Group Ttile");
//TODO: why can't I do this. SGWT complains of the widget having been already constructed. No way!
if (GWT.isScript()){
form.setIsGroup(true);
}
If I take the isScript guard off this will crash DevMode.
The following errors seem harmless enough but they create a lot of noise. I'd like to get rid them:
3. I get this often. I'm not sure what is causing it and how I can go about fixing it. It doesn't seem to be an issue as far as running the app goes.
ERROR: 10:49:08.878:WARN:PickList:Use addInterfaceProperties() to add methods to interface [Class PickList]
com.smartgwt.client.core.JsObject$SGWT_WARN: 10:49:08.878:WARN:PickList:Use addInterfaceProperties() to add methods to interface [Class PickList]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
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:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.util.I18nUtil.initMessages(I18nUtil.java)
at com.smartgwt.client.util.I18nUtil.init(I18nUtil.java:32)
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:348)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
4. Is this one related to the previous one. This is another one that seems to come from deep within some library jar. I don't see any of our classes in the stack trace....Why did Ajax fail? The app seems to be running fine.
ERROR: Ajax call failed.
com.google.gwt.user.client.rpc.StatusCodeException: 0
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:209)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:258)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
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:242)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
ERROR: Ajax call failed.
5. Finally when bootstrapping smartgwt in the startup html page, what does this really mean ?isc_version=9.1.js. Don't I already select the version by including teh right jars.
Thanks in advance for any help. The first one is an actual real problem that can be show-stopper for us. The rest are less critical.
(Clearly a lot of thought was put into backward compatibility. Most things worked out of the box, despite the fact we upgraded from a very old version.)
-kornel
Comment