I did a GWT compile, and reloaded eclipse. and the problem went away. (yes, I blew away the browser cache multiple times but it didn't help). looks like an eclipse staleness issue.
Thanks for your help!
bob
Announcement
Collapse
No announcement yet.
X
-
These are still clear symptoms of mixed versions of files in your project. Run a GWT compile to try to flush out the old files.
If that still doesn't work, you can use Firebug's Net panel to verify, by looking at the first few lines of the various ISC_*.js files, that you're loading a mixture of files from different versions of SmartGWT. From there, you may need to restart Eclipse, run an other GWT Compile, or rebuild the project to try to get rid of the Eclipse staleness issue.
Leave a comment:
-
Did you clear your browser cache? Which browser are you using? Try using a different browser for troubleshooting purposes. Have you tried in dev mode as well as after compilation?
Leave a comment:
-
I got rid of this line as well, same thing
Code:<inherits name="com.google.gwt.user.theme.standard.Standard"/>
Leave a comment:
-
the welcome.gwt.xml file
Code:<module> <inherits name="com.google.gwt.user.User"/> <inherits name="com.google.gwt.user.theme.standard.Standard"/> <!-- <inherits name="com.smartgwt.SmartGwt"/> --> <inherits name="com.smartgwtee.SmartGwtEE"/> <inherits name="com.smartgwtee.tools.Tools"/> <entry-point class="com.wilson.gui.client.welcome"/> </module>
Code:<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- --> <!-- Consider inlining CSS to reduce the number of requested files --> <!-- --> <link type="text/css" rel="stylesheet" href="welcome.css"> <!-- --> <!-- Any title is fine --> <!-- --> <title>Wrapper HTML for welcome</title> <!-- --> <!-- This script loads your compiled module. --> <!-- If you add any GWT meta tags, they must --> <!-- be added before this line. --> <!-- --> <script> var isomorphicDir = "com.wilson.gui.welcome/sc/"; </script> <script language="javascript" src="com.wilson.gui.welcome/com.wilson.gui.welcome.nocache.js"></script> </head> <!-- --> <!-- The body can have arbitrary html, or --> <!-- we leave the body empty because we want --> <!-- to create a completely dynamic ui --> <!-- --> <body> <!--load datasources from server --> <!-- script src="DataSourceLoader?dataSource=users"></script> <!-- OPTIONAL: include this if you want history support --> <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe> </body> </html>
Code:<html> <head><script> var $wnd = parent; var $doc = $wnd.document; var $moduleName, $moduleBase, $entry ,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null ,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; // Lightweight metrics if ($stats) { var moduleFuncName = location.search.substr(1); var moduleFunc = $wnd[moduleFuncName]; var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown"; $stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'}); } var $hostedHtmlVersion="2.1"; var gwtOnLoad; var $hosted = "localhost:9997"; function loadIframe(url) { var topDoc = window.top.document; // create an iframe var iframeDiv = topDoc.createElement("div"); iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>"; var iframe = iframeDiv.firstChild; // mess with the iframe style a little var iframeStyle = iframe.style; iframeStyle.position = "absolute"; iframeStyle.borderWidth = "0"; iframeStyle.left = "0"; iframeStyle.top = "0"; iframeStyle.width = "100%"; iframeStyle.backgroundColor = "#ffffff"; iframeStyle.zIndex = "1"; iframeStyle.height = "100%"; // update the top window's document's body's style var hostBodyStyle = window.top.document.body.style; hostBodyStyle.margin = "0"; hostBodyStyle.height = iframeStyle.height; hostBodyStyle.overflow = "hidden"; // insert the iframe topDoc.body.insertBefore(iframe, topDoc.body.firstChild); } var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("gecko") != -1) { // install eval wrapper on FF to avoid EvalError problem var __eval = window.eval; window.eval = function(s) { return __eval(s); } } if (ua.indexOf("chrome") != -1) { // work around __gwt_ObjectId appearing in JS objects var hop = Object.prototype.hasOwnProperty; Object.prototype.hasOwnProperty = function(prop) { return prop != "__gwt_ObjectId" && hop.call(this, prop); }; // do the same in our parent as well -- see issue 4486 // NOTE: this will have to be changed when we support non-iframe-based DevMode var hop2 = parent.Object.prototype.hasOwnProperty; parent.Object.prototype.hasOwnProperty = function(prop) { return prop != "__gwt_ObjectId" && hop2.call(this, prop); }; } // wrapper to call JS methods, which we need both to be able to supply a // different this for method lookup and to get the exception back function __gwt_jsInvoke(thisObj, methodName) { try { var args = Array.prototype.slice.call(arguments, 2); return [0, window[methodName].apply(thisObj, args)]; } catch (e) { return [1, e]; } } var __gwt_javaInvokes = []; function __gwt_makeJavaInvoke(argCount) { return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount); } function __gwt_doMakeJavaInvoke(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_javaInvokes[" + argCount + "] =\n" + " function(thisObj, dispId" + argList + ") {\n" + " var result = __static(dispId, thisObj" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" ); } /* * This is used to create tear-offs of Java methods. Each function corresponds * to exactly one dispId, and also embeds the argument count. We get the "this" * value from the context in which the function is being executed. * Function-object identity is preserved by caching in a sparse array. */ var __gwt_tearOffs = []; var __gwt_tearOffGenerators = []; function __gwt_makeTearOff(proxy, dispId, argCount) { return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount); } function __gwt_doMakeTearOff(dispId, argCount) { return __gwt_tearOffs[dispId] = (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId); } function __gwt_doMakeTearOffGenerator(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_tearOffGenerators[" + argCount + "] =\n" + " function(dispId) {\n" + " return function(" + argListNoComma + ") {\n" + " var result = __static(dispId, this" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" + " }\n" ); } function __gwt_makeResult(isException, result) { return [isException, result]; } function __gwt_disconnected() { // Prevent double-invocation. window.__gwt_disconnected = new Function(); // Do it in a timeout so we can be sure we have a clean stack. window.setTimeout(__gwt_disconnected_impl, 1); } function __gwt_disconnected_impl() { __gwt_displayGlassMessage('GWT Code Server Disconnected', 'Most likely, you closed GWT Development Mode. Or, you might have lost ' + 'network connectivity. To fix this, try restarting GWT Development Mode and ' + '<a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">' + 'REFRESH</a> this page.'); } // Note this method is also used by ModuleSpace.java function __gwt_displayGlassMessage(summary, details) { var topWin = window.top; var topDoc = topWin.document; var outer = topDoc.createElement("div"); // Do not insert whitespace or outer.firstChild will get a text node. outer.innerHTML = '<div style="position:absolute;z-index:2147483646;left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=75);opacity:0.75;background-color:#000000;"></div>' + '<div style="position:absolute;z-index:2147483647;left:50px;top:50px;width:600px;color:#FFFFFF;font-family:verdana;">' + '<div style="font-size:30px;font-weight:bold;">' + summary + '</div>' + '<p style="font-size:15px;">' + details + '</p>' + '</div>' ; topDoc.body.appendChild(outer); var glass = outer.firstChild; var glassStyle = glass.style; // Scroll to the top and remove scrollbars. topWin.scrollTo(0, 0); if (topDoc.compatMode == "BackCompat") { topDoc.body.style["overflow"] = "hidden"; } else { topDoc.documentElement.style["overflow"] = "hidden"; } // Steal focus. glass.focus(); if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) { // IE quirks mode doesn't support right/bottom, but does support this. glassStyle.width = "125%"; glassStyle.height = "100%"; } else if (navigator.userAgent.indexOf("MSIE 6") >= 0) { // IE6 doesn't have a real standards mode, so we have to use hacks. glassStyle.width = "125%"; // Get past scroll bar area. // Nasty CSS; onresize would be better but the outer window won't let us add a listener IE. glassStyle.setExpression("height", "document.documentElement.clientHeight"); } $doc.title = summary + " [" + $doc.title + "]"; } function findPluginObject() { try { return document.getElementById('pluginObject'); } catch (e) { return null; } } function findPluginEmbed() { try { return document.getElementById('pluginEmbed') } catch (e) { return null; } } function findPluginXPCOM() { try { return __gwt_HostedModePlugin; } catch (e) { return null; } } gwtOnLoad = function(errFn, modName, modBase){ $moduleName = modName; $moduleBase = modBase; // Note that the order is important var pluginFinders = [ findPluginXPCOM, findPluginObject, findPluginEmbed, ]; var topWin = window.top; var url = topWin.location.href; if (!topWin.__gwt_SessionID) { var ASCII_EXCLAMATION = 33; var ASCII_TILDE = 126; var chars = []; for (var i = 0; i < 16; ++i) { chars.push(Math.floor(ASCII_EXCLAMATION + Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1))); } topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars); } var plugin = null; for (var i = 0; i < pluginFinders.length; ++i) { try { var maybePlugin = pluginFinders[i](); if (maybePlugin != null && maybePlugin.init(window)) { plugin = maybePlugin; break; } } catch (e) { } } if (!plugin) { // try searching for a v1 plugin for backwards compatibility var found = false; for (var i = 0; i < pluginFinders.length; ++i) { try { plugin = pluginFinders[i](); if (plugin != null && plugin.connect($hosted, $moduleName, window)) { return; } } catch (e) { } } loadIframe("http://gwt.google.com/missing-plugin"); } else { if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName, $hostedHtmlVersion)) { window.onUnload = function() { try { // wrap in try/catch since plugins are not required to supply this plugin.disconnect(); } catch (e) { } }; } else { if (errFn) { errFn(modName); } else { alert("Plugin failed to connect to Development Mode server at " + $hosted); loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM"); } } } } window.onunload = function() { }; // Lightweight metrics window.fireOnModuleLoadStart = function(className) { $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className}); }; window.__gwt_module_id = 0; </script></head> <body> <font face='arial' size='-1'>This html file is for Development Mode support.</font> <script><!-- // Lightweight metrics $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'}); // OOPHM currently only supports IFrameLinker var query = parent.location.search; if (!findPluginXPCOM()) { document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">'); document.write('</embed>'); document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">'); document.write('</object>'); } // look for the old query parameter if we don't find the new one var idx = query.indexOf("gwt.codesvr="); if (idx >= 0) { idx += 12; // "gwt.codesvr=".length() == 12 } else { idx = query.indexOf("gwt.hosted="); if (idx >= 0) { idx += 11; // "gwt.hosted=".length() == 11 } } if (idx >= 0) { var amp = query.indexOf("&", idx); if (amp >= 0) { $hosted = query.substring(idx, amp); } else { $hosted = query.substring(idx); } // According to RFC 3986, some of this component's characters (e.g., ':') // are reserved and *may* be escaped. $hosted = decodeURIComponent($hosted); } query = window.location.search.substring(1); if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1); --></script></body></html>
Leave a comment:
-
Are you inheriting the the SmartGwtEE modules? Can you post your gwt module xml file and your host html file?
Leave a comment:
-
I tried emptying the cache with Chrome. same problem. Tried it with IE (8), also throws an error, but it's showing something different..
Code:14:42:46.755 [ERROR] [com.wilson.gui.welcome] 14:42:46.751:WARN:Log:Error: ''isc.StatefulCanvas.$b4.initWidget' is null or not an object' in http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Foundation.js at line 593 Button.initWidget(Obj{ID:isc_Label_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef) Canvas.init(_1=>Obj{ID:isc_Label_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_Label_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_Label_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) B() anonymous() "if(I){q=true;B()}" com.smartgwt.client.core.JsObject$SGWT_WARN: 14:42:46.751:WARN:Log:Error: ''isc.StatefulCanvas.$b4.initWidget' is null or not an object' in http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Foundation.js at line 593 Button.initWidget(Obj{ID:isc_Label_0}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef) Canvas.init(_1=>Obj{ID:isc_Label_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_Label_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_Label_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) B() anonymous() "if(I){q=true;B()}" 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.Label.create(Label.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:357) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1086) at com.wilson.gui.client.welcome.onModuleLoad(welcome.java:32) 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)
Code:HLayout mainLayout = new HLayout(); mainLayout.addMember(new Label ("blah"));
Leave a comment:
-
You probably just need to clear your browser cache. Also, if this is happening only in Chrome, see the FAQ about that.
Leave a comment:
-
trying to convert project to smartgwtee
hi there,
I have a sample project that I am trying to convert o smartgwt-ee (2.4) version. the sample works fine with the LGPL version.
After following the instructions online - changing *.gwt.xml and adding the smartgwtee.jar file, the project can no longer start.
it throws an exception the first time I use the vLayout.addMember() function. and the exception is:
Code:onModuleLoad() threw an exception Exception while loading module com.wilson.gui.client.welcome. See Development Mode for details. java.lang.reflect.InvocationTargetException 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) Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'initWidget' of undefined arguments: initWidget, type: non_object_property_load stack: TypeError: Cannot read property 'initWidget' of undefined at Object.isc_Button_initWidget [as initWidget] (http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Foundation.js:593:53) at Object.isc_Canvas_init [as init] (http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Core.js:1967:6) at Object.isc_Class_completeCreation [as completeCreation] (http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Core.js:362:6) at Object.isc_c_Class_create (http://127.0.0.1:8888/com.wilson.gui.welcome/sc/modules/ISC_Core.js:232:736) at [object Object]. (unknown source) at __gwt_jsInvoke (http://127.0.0.1:8888/com.wilson.gui.welcome/hosted.html?com_wilson_gui_welcome:76:35) at http://127.0.0.1:8888/com.wilson.gui.welcome/hosted.html?com_wilson_gui_welcome:280:16 at B (http://127.0.0.1:8888/com.wilson.gui.welcome/com.wilson.gui.welcome.nocache.js:2:154) at http://127.0.0.1:8888/com.wilson.gui.welcome/com.wilson.gui.welcome.nocache.js:14:510 __gwt_ObjectId: 3 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) 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.Label.create(Label.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:357) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1086) at com.wilson.gui.client.welcome.onModuleLoad(welcome.java:40) ... 9 more
Tags: None
Leave a comment: