Got the following messages when upgrading smartgwt v2.2 LGPL to 2010.Nov.16 nightly LGPL
browser popup msg:
"Uncaught exception escaped" (Firefox 3.6.12)
eclipse dev mode console:
"WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item."
*** SmartGWT Developer Console ***
16:36:12.198:INFO:Log:initialized
16:36:13.062:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
16:36:16.516:INFO:Log:isc.Page is loaded
16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
*** Stack Trace ***
16:36:17.758 [ERROR] [jsonclient] Uncaught exception escaped
java.lang.ClassCastException: null
at java.lang.Class.cast(Unknown Source)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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:214)
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.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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.smartgwt.client.widgets.form.SearchForm.create(SearchForm.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
at com.trendmicro.bpm.client.json.client.inbox.WorkItemList.<init>(WorkItemList.java:50)
at com.trendmicro.bpm.client.json.client.inbox.InBoxView.<init>(InBoxView.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.mvp4g.client.Mvp4gGinjectorImpl.create_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:177)
at com.mvp4g.client.Mvp4gGinjectorImpl.get_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:183)
at com.mvp4g.client.Mvp4gGinjectorImpl.getcom_trendmicro_bpm_client_json_client_inbox_InBoxPresenterView(Mvp4gGinjectorImpl.java:19)
at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:83)
at com.mvp4g.client.Mvp4gEntryPoint.onModuleLoad(Mvp4gEntryPoint.java:35)
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.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
***
16:36:17.805 [ERROR] [jsonclient] 16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
com.smartgwt.client.core.JsObject$SGWT_WARN: 16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
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:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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.smartgwt.client.widgets.form.SearchForm.create(SearchForm.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
at com.trendmicro.bpm.client.json.client.inbox.WorkItemList.<init>(WorkItemList.java:50)
at com.trendmicro.bpm.client.json.client.inbox.InBoxView.<init>(InBoxView.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.mvp4g.client.Mvp4gGinjectorImpl.create_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:177)
at com.mvp4g.client.Mvp4gGinjectorImpl.get_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:183)
at com.mvp4g.client.Mvp4gGinjectorImpl.getcom_trendmicro_bpm_client_json_client_inbox_InBoxPresenterView(Mvp4gGinjectorImpl.java:19)
at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:83)
at com.mvp4g.client.Mvp4gEntryPoint.onModuleLoad(Mvp4gEntryPoint.java:35)
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.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
*** Sample Code ***
Sorry I did not test this in isolated mode, but i assume the problem is straightforward enough. Here's a sample of the code.
Exeption is thrown when the following code is executed:
SearchForm searchForm = new SearchForm();
vLayout.addMember(searchForm);
public class WorkItemSearchForm extends SearchForm {
ButtonItem button = new ButtonItem();
TextItem query = new TextItem();
public WorkItemSearchForm() {
SearchForm form = this;
form.setNumCols(3);
form.setWidth(150);
query.setName("searchDesc");
query.setTitle("Search Description");
query.setDefaultValue("");
button.setTitle("Search");
button.setStartRow(false);
form.setItems(query, button);
}
...
}
browser popup msg:
"Uncaught exception escaped" (Firefox 3.6.12)
eclipse dev mode console:
"WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item."
*** SmartGWT Developer Console ***
16:36:12.198:INFO:Log:initialized
16:36:13.062:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
16:36:16.516:INFO:Log:isc.Page is loaded
16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
*** Stack Trace ***
16:36:17.758 [ERROR] [jsonclient] Uncaught exception escaped
java.lang.ClassCastException: null
at java.lang.Class.cast(Unknown Source)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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:214)
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.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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.smartgwt.client.widgets.form.SearchForm.create(SearchForm.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
at com.trendmicro.bpm.client.json.client.inbox.WorkItemList.<init>(WorkItemList.java:50)
at com.trendmicro.bpm.client.json.client.inbox.InBoxView.<init>(InBoxView.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.mvp4g.client.Mvp4gGinjectorImpl.create_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:177)
at com.mvp4g.client.Mvp4gGinjectorImpl.get_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:183)
at com.mvp4g.client.Mvp4gGinjectorImpl.getcom_trendmicro_bpm_client_json_client_inbox_InBoxPresenterView(Mvp4gGinjectorImpl.java:19)
at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:83)
at com.mvp4g.client.Mvp4gEntryPoint.onModuleLoad(Mvp4gEntryPoint.java:35)
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.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
***
16:36:17.805 [ERROR] [jsonclient] 16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
com.smartgwt.client.core.JsObject$SGWT_WARN: 16:36:17.765:WARN:ButtonItem:isc_ButtonItem_2:CanvasItem: isc_ButtonItem_1 defined with no canvas property - creating a default canvas for this item.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
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:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
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.smartgwt.client.widgets.form.SearchForm.create(SearchForm.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
at com.trendmicro.bpm.client.json.client.inbox.WorkItemList.<init>(WorkItemList.java:50)
at com.trendmicro.bpm.client.json.client.inbox.InBoxView.<init>(InBoxView.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.mvp4g.client.Mvp4gGinjectorImpl.create_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:177)
at com.mvp4g.client.Mvp4gGinjectorImpl.get_Key$type$com$trendmicro$bpm$client$json$client$inbox$InBoxView$_annotation$$none$$(Mvp4gGinjectorImpl.java:183)
at com.mvp4g.client.Mvp4gGinjectorImpl.getcom_trendmicro_bpm_client_json_client_inbox_InBoxPresenterView(Mvp4gGinjectorImpl.java:19)
at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:83)
at com.mvp4g.client.Mvp4gEntryPoint.onModuleLoad(Mvp4gEntryPoint.java:35)
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.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
*** Sample Code ***
Sorry I did not test this in isolated mode, but i assume the problem is straightforward enough. Here's a sample of the code.
Exeption is thrown when the following code is executed:
SearchForm searchForm = new SearchForm();
vLayout.addMember(searchForm);
public class WorkItemSearchForm extends SearchForm {
ButtonItem button = new ButtonItem();
TextItem query = new TextItem();
public WorkItemSearchForm() {
SearchForm form = this;
form.setNumCols(3);
form.setWidth(150);
query.setName("searchDesc");
query.setTitle("Search Description");
query.setDefaultValue("");
button.setTitle("Search");
button.setStartRow(false);
form.setItems(query, button);
}
...
}
Comment