Announcement

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

    Google Chart Tools for GWT (gwt-visualization)

    1. the SmartGWT or SmartClient version and browser version(s) involved:
    LGPL, nightly (http://www.smartclient.com/smartgwt/builds/latest/ , as of today)

    3. for a client-side problem, the contents of the Developer Console (see FAQ for usage):
    It's a client side issue, but not seeing any log output in the dev console's "Log Messages" (not related to the issue, anyhow)

    4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible);
    Code:
    16:57:33.244 [ERROR] [projectname] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (TypeError): event is undefined
     fileName: http://127.0.0.1:8888/projectname/sc/modules/ISC_Core.js
     lineNumber: 38
     stack: anonymous((void 0))@http://127.0.0.1:8888/projectname/sc/modules/ISC_Core.js:38
    ()@http://127.0.0.1:8888:31
    ((function (evt) {try {__gwt_makeJavaInvoke(0)(null, 16449732);} finally {oldOnUnload && oldOnUnload(evt);$wnd.onresize = null;$wnd.onscroll = null;$wnd.onbeforeunload = null;$wnd.onunload = null;}}),[object XPCCrossOriginWrapper],[object Object])@http://127.0.0.1:8888:6
    @:0
    (null,65642,(function (evt) {try {__gwt_makeJavaInvoke(0)(null, 16449732);} finally {oldOnUnload && oldOnUnload(evt);$wnd.onresize = null;$wnd.onscroll = null;$wnd.onbeforeunload = null;$wnd.onunload = null;}}),[object XPCCrossOriginWrapper],[object Object])@http://127.0.0.1:8888/projectname/hosted.html?projectname:56
    ()@http://127.0.0.1:8888:19
    ([object Event])@http://www.google.com/uds/api/visualization/1.0/efdb9398400374ac755c95e00e6250bc/default,browserchart,piechart.I.js:140
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:247)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:510)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
        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.GeneratedMethodAccessor39.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:154)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:291)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:541)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:362)
        at java.lang.Thread.run(Thread.java:619)
    5. sample code
    I am using code from here directly: http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted

    OK, here is my issue. I initially fought with having the charts show up at all, and then I realized that SmartGWT and GWT don't play nice when you go from a GWT parent to a SmartGWT child, and then back to a GWT child (or starting with SmartGWT and switching back and forth). This is outlined in the SmartGWT FAQ (and hopefully will be resolved in the future), so I was able to solve my initial problem from the FAQ.

    However, once I figured out how to get the chart to display, I ran into another problem. The problem isn't huge, but it is annoying. Whenever I refresh a page after a GWT chart has been rendered, I get the exception posted above.

    Note that I have tested in Firefox 3.6, IE7, and IE8. I only see the alert (with the exception in it) in FF. IE7 and 8 work just fine.

    When I run the code from the link above (without inheriting SmartGWT), the page refreshes without errors, in both FF and IE. However, from only adding the one line (<inherits name="com.smartgwt.SmartGwt"/> , nothing else is added whatsoever), I get the error in FF upon refreshing the page.

    Any help is appreciated.

    #2
    I have the exact same issue as described above, and any help in resolving this would be highly appreciated.

    Comment


      #3
      banang,

      After further testing, this appears to only happen in development mode. So while it is an annoyance, it shouldn't be an issue during production.

      Can you let me know if it goes away when you are not in development mode?

      Comment


        #4
        Ah, you're right, the problem does go away when running in deployment mode. Thanks! I will let you know if I find a way of getting rid of it in development mode.

        Is there anyone from Isomorphic with thoughts on how to get rid of this? Thanks.

        Comment


          #5
          Sorry, the last time we looked at this it appeared the problem was some kind of integration problem between Google Visualization and GWT.

          Comment


            #6
            "When I run the code from the link above (without inheriting SmartGWT), the page refreshes without errors, in both FF and IE. However, from only adding the one line (<inherits name="com.smartgwt.SmartGwt"/> , nothing else is added whatsoever), I get the error in FF upon refreshing the page."

            Just adding the inherits line for SmartGWT seems to cause the problem. Without the inherit it seems to work fine. If it is an integration problem between Google Visualization and GWT, it still seems as though the inheritance of SmartGWT is playing a role as well.

            Comment


              #7
              Today I ran into the same issue. By chance, I stumbled upon this thread and in a way glad to know that I'm not the only one having this issue.

              Has anybody managed to resolve it?

              Thanks.

              Comment

              Working...
              X