I'm having problems with a JavaScript error that happens directly when I try to load the page in hosted mode. The weird part is that it used to work perfectly and I'm only using the Calendar widget from Smart GWT on a page, and I haven't changed anything with regards to Smart GWT in quite a long time. This error just started happening.
I've tried both 2.4 and the latest nightly build 2.5.
I've tried to access the Developer Console but it just won't load. When I try to access the page CPU goes up to 100% and then I get the error after several seconds of loading.
I have the following inherits in my .gwt.xml and if I comment them out everything works perfectly.
<inherits name="com.smartgwt.SmartGwtNoTheme"/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlueResources"/>
[ERROR] [connect] Unable to load module entry point class com.smartgwt.client.SmartGwtEntryPoint (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc is undefined
fileName: http://127.0.0.1:8888
lineNumber: 8
stack: ()@http://127.0.0.1:8888:8
((void 0),"connect","http://127.0.0.1:8888/connect/",0)@h...ml?connect:281
B()@http://127.0.0.1:8888/connect/connect.nocache.js:2
(-1)@http://127.0.0.1:8888/connect/connect.nocache.js:15
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.invokeNativeVoid(ModuleSpace.java:289)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java)
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:221)
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)
I've Googled for this and seen people having this problem when inheriting SmartGwtNoScript. I don't however, and it still doesn't work when I only inherit <inherits name="com.smartgwt.SmartGwt"/> instead of the themes. What's weird is that sometimes I don't get this error, and I can't really find any connection to why it happens.
Anyone have any idea?
I've tried both 2.4 and the latest nightly build 2.5.
I've tried to access the Developer Console but it just won't load. When I try to access the page CPU goes up to 100% and then I get the error after several seconds of loading.
I have the following inherits in my .gwt.xml and if I comment them out everything works perfectly.
<inherits name="com.smartgwt.SmartGwtNoTheme"/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlueResources"/>
[ERROR] [connect] Unable to load module entry point class com.smartgwt.client.SmartGwtEntryPoint (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc is undefined
fileName: http://127.0.0.1:8888
lineNumber: 8
stack: ()@http://127.0.0.1:8888:8
((void 0),"connect","http://127.0.0.1:8888/connect/",0)@h...ml?connect:281
B()@http://127.0.0.1:8888/connect/connect.nocache.js:2
(-1)@http://127.0.0.1:8888/connect/connect.nocache.js:15
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.invokeNativeVoid(ModuleSpace.java:289)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java)
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:221)
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)
I've Googled for this and seen people having this problem when inheriting SmartGwtNoScript. I don't however, and it still doesn't work when I only inherit <inherits name="com.smartgwt.SmartGwt"/> instead of the themes. What's weird is that sometimes I don't get this error, and I can't really find any connection to why it happens.
Anyone have any idea?
Comment