We are evaluating the use of smartgwtee in our applications. I tried creating a little demo using a cubegrid to understand the basics. However I am getting an exception.
We are using smartgwtee 2.4 and gwt 2.2.
Tried it on Chrome 11.0.696.71 and Firefox 3.6.17.
It crashes at *this.addMember(cubeGrid);* with the following exception.
Any idea what we might be doing wrong?
We even tried using cubeGrid.setData(...) but the same error occurs.
We are using smartgwtee 2.4 and gwt 2.2.
Tried it on Chrome 11.0.696.71 and Firefox 3.6.17.
Code:
package xxx; import com.google.gwt.user.client.ui.Composite; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.cube.CubeGrid; import com.smartgwt.client.widgets.layout.VLayout; public class TestView extends VLayout { public TestView() { Label label = new Label("Testing"); CubeGrid cubeGrid = new CubeGrid(); cubeGrid.setWidth100(); cubeGrid.setHeight100(); this.addMember(label); this.addMember(cubeGrid); this.draw(); } }
Code:
00:17:45.953 [ERROR] 10:23:10.424:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { if (this.$rg) { this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); return; } this.$rg = true; this.$rh = _1; this.$ri = _5; this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); } failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { if (this.$rg) { this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); return; } this.$rg = true; this.$rh = _1; this.$ri = _5; this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); } Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Class.invokeSuper(_1=>null, _2=>Canvas.$rf(), _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef) Class.Super(_1=>Canvas.$rf(), _2=>undef, _3=>undef) CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef) Canvas.init(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) anonymous() connect("http://127.0.0.1:8888/index.html?gwt.cod..."[64], "Gj`0m@JJL0EAXgLq", "127.0.0.1:9997", "AF", "2.1") anonymous(errFn=>undef, modName=>"AF", modBase=>"http://127.0.0.1:8888/AF/", 0) maybeStartModule() anonymous(-5) com.smartgwt.client.core.JsObject$SGWT_WARN: 10:23:10.424:WARN:Log:Call to Super for method: function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { if (this.$rg) { this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); return; } this.$rg = true; this.$rh = _1; this.$ri = _5; this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); } failed on: [CubeGrid ID:isc_CubeGrid_0]: couldn't find a superclass implementation of : CubeGrid.function isc_Canvas__refreshOrReplaceFromURL(_1, _2, _3, _4, _5) { if (this.$rg) { this.logWarn("Attempt to " + _1 + " while " + this.$rh + " is in progress - ignoring."); return; } this.$rg = true; this.$rh = _1; this.$ri = _5; this.logDebug("Submitting to " + _1 + " URL: " + _2 + ", with data: " + this.echo(_3)); isc.Comm.sendFieldsToServer({URL: _2, fields: _3, prompt: _4, callback: this.getID() + ".$rj(frame)", resultVarName: this.refreshVariable}); } Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Class.invokeSuper(_1=>null, _2=>Canvas.$rf(), _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef) Class.Super(_1=>Canvas.$rf(), _2=>undef, _3=>undef) CubeGrid.initWidget(Obj{ID:isc_CubeGrid_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef) Canvas.init(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) Class.completeCreation(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) [c]Class.create(_1=>Obj{ID:isc_CubeGrid_0}, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) anonymous() connect("http://127.0.0.1:8888/index.html?gwt.cod..."[64], "Gj`0m@JJL0EAXgLq", "127.0.0.1:9997", "AF", "2.1") anonymous(errFn=>undef, modName=>"AF", modBase=>"http://127.0.0.1:8888/AF/", 0) maybeStartModule() anonymous(-5) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 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:129) 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.cube.CubeGrid.create(CubeGrid.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073) at com.ivstel.af.client.custom.view.TestView.<init>(TestView.java:21) at com.ivstel.af.client.Analytics.onValueChange(Analytics.java:57) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1) at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204) at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101) at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43) at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81) at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121) at com.ivstel.af.client.Analytics.onModuleLoad(Analytics.java:43) 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:597) 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(Thread.java:662)
We even tried using cubeGrid.setData(...) but the same error occurs.
Comment