Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Exception in Firefox 4.0, $wnd.isc.Canvas is undefined

    Be sure your post includes:

    SmartGWT : 2.4
    Firefox: 4.0
    GWT: 2.2

    When attempting to start my application in Firefox 4.0, I receive the following error. The error does not occur in IE 9.0 or Chrome dev 12.0.

    Code:
    [ERROR] [IsdmWebApp] - Unable to load module entry point class com.smartgwt.client.SmartGwtEntryPoint (see associated exception for details)
    
    17:17:56.169 [ERROR] [IsdmWebApp] 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.Canvas is undefined
     fileName: http://127.0.0.1:8888
     lineNumber: 220
     stack: ([object GWTJavaObject])@http://127.0.0.1:8888:220
    ((void 0),"IsdmWebApp","http://127.0.0.1:8888/IsdmWebApp/",0)@http://127.0.0.1:8888/IsdmWebApp/hosted.html?IsdmWebApp:281
    maybeStartModule()@http://127.0.0.1:8888/IsdmWebApp/IsdmWebApp.nocache.js:40
    (-1)@http://127.0.0.1:8888/IsdmWebApp/IsdmWebApp.nocache.js:299
    
        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.util.I18nUtil.initMessages(I18nUtil.java)
        at com.smartgwt.client.util.I18nUtil.init(I18nUtil.java:32)
        at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:194)
        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)
    Last edited by jonl; 6 Apr 2011, 13:26.

    #2
    The problem is that your application is not loading the SmartGWT JavaScript runtime (ISC_Core.js et al). This shouldn't be browser-specific, rather, something's wrong with your .gwt.xml settings and/or your project files for your IDE.

    Try doing a GWT compile, restarting the IDE, and finally rebuilding the project to fix it.

    Comment


      #3
      I have tried doing all that you have suggested. Nothing seems to work.

      It should not be browser specific, however it seems to be. I am able to successfully run the application in IE 9, Chrome Dev v 12, and FireFox Portable 3.6.16, but not in Firefox 4.0.

      If I run the showcase in GWT hosted mode I get the same error. If I try to visit http://www.smartclient.com/smartgwt/showcase/ it never loads, just sits on the "Loading ~300 samples" message, which is similar to what happens when I deploy my application to glassfish and try to load in Firefox 4.0.

      Something in Firefox 4.0 is not playing well with smart gwt.

      Comment


        #4
        After messing around with my firefox, shortly after the post above, I removed some add ons that were no longer compatible that I had investigated before. CookiePiePlus, seems to have been the culprit. All is working now in Firefox 4.0.

        Comment

        Working...
        X