Announcement

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

    js exception when grid is grouped

    SmartClient Version: SC_SNAPSHOT-2011-04-22/PowerEdition Deployment (built 2011-04-22)

    I'm seeing the following error in the dev console repeated about 20 times when I select a field to group by on a ListGrid. I don't know if this could have anything to do with it but the grid does use some column heading spans.

    The grouping function completes normally and the grid is updated correctly, but when running in dev mode you can see the errors being thrown.
    Code:
    18:00:48.977 [ERROR] [ipgui] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (null): null
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        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.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
        at sun.reflect.GeneratedMethodAccessor23.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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:680)
    And once the grid is grouped, if I refresh the data in the grid by calling setData(RecordList) I get these errors in the dev console, but the new data is set correctly.
    Code:
    18:05:03.675 [ERROR] [ipgui] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (null): null
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        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.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
        at sun.reflect.GeneratedMethodAccessor23.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: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:126)
        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.widgets.BaseWidget.setProperty(BaseWidget.java)
        at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:804)
        at com.smartgwt.client.widgets.grid.ListGrid.setData(ListGrid.java:10051)
        at com.islandpacific.gui.client.PoAllocationForm$16.execute(PoAllocationForm.java:1068)
        at sun.reflect.GeneratedMethodAccessor54.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: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:126)
        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.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
        at sun.reflect.GeneratedMethodAccessor23.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:157)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:680)

    #2
    Not getting this to happen with some quick attempts. What do you get as a stack trace if you do this in compiled mode and check the Developer Console?

    Comment


      #3
      I'm not seeing anything in the dev console in compiled mode when I group by a column. I am getting an exception when I execute a method that tries to update the grid via setData(). Not sure exactly where the exception is being thrown because of a try/catch block around the method which does a bunch of calculations and then updates the grid. It could be somewhere during the calculations prior to setData() Here is the stack track from the exception I'm catching. If I ungroup the grid and do the same thing I do not get the error.

      (TypeError): Fde(F) is null stack: sic([object Object],"standardScale",[object Object])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:4778 jjc()@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:4886 NC([object Array],[object Array])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:3971 EC([object Object])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:3417 SC()@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:4868 JC([object Object])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:2232 pC(JC,[object XPCCrossOriginWrapper],[object Object])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:4099 ([object Object])@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:3367 (117)@http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html:3718 fileName: http://guibuild:8085/ipgui/295A60BE68BDF6F38A1FA2AE497F096F.cache.html lineNumber: 4778

      Comment


        #4
        Hmm, not much to go on. Are you able to remove your try..catch block (which would cut off the critical part of the stack, at least in IE) and temporarily disable GWT obfuscation to try to get a better stack?

        Comment

        Working...
        X